28 lines
727 B
C#
28 lines
727 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace WPFBeginner.Models
|
|
{
|
|
public class Member
|
|
{
|
|
[JsonPropertyName("Name")]
|
|
public string Name { get; set; }
|
|
[JsonPropertyName("Call")]
|
|
public string Call { get; set; }
|
|
[JsonPropertyName("EMail")]
|
|
public string EMail { get; set; }
|
|
[JsonPropertyName("No")]
|
|
public string EmployeeNo { get; set; }
|
|
|
|
public static Member Create(string name, string call, string email, string employeeNo)
|
|
{
|
|
return new Member()
|
|
{
|
|
Name = name,
|
|
Call = call,
|
|
EMail = email,
|
|
EmployeeNo = employeeNo
|
|
};
|
|
}
|
|
}
|
|
}
|