public ClientW(Client client) { this.Id = client.Id; this.Name = client.Name; this.Diaries = client.Diaries; this.Mobile = client.Mobile; }
public Client ToBase() { Client client = new Client(); client.Id = this.Id; client.Name = this.Name; client.Diaries = this.Diaries; client.Mobile = this.Mobile; return client; }
public IEnumerable<Client> GetSelectListClients(bool allValue = true) { var selectList = new List<Client>(); if(allValue) { var nullable = new Client(); nullable.Id = Guid.Empty; nullable.Name = "Всички"; selectList.Insert(0, nullable); } selectList.AddRange(db.Clients); return selectList; }