20 lines
611 B
C#
20 lines
611 B
C#
|
namespace IT_Company.Entities
|
|||
|
{
|
|||
|
public class Organization
|
|||
|
{
|
|||
|
public int Id { get; set; }
|
|||
|
public string Name { get; set; }
|
|||
|
public string Address { get; set; }
|
|||
|
public string BankAccount { get; set; }
|
|||
|
public static Organization CreateEntity(int id, string name, string address, string BankAccount)
|
|||
|
{
|
|||
|
return new Organization {
|
|||
|
Id = id,
|
|||
|
Name = name ?? string.Empty,
|
|||
|
Address = address ?? string.Empty,
|
|||
|
BankAccount = BankAccount ?? string.Empty
|
|||
|
};
|
|||
|
}
|
|||
|
}
|
|||
|
}
|