/// <summary> /// Конструктор для создания нового клиента. /// </summary> /// <param name="name">Имя клиента.</param> /// <param name="type">Тип клиента.</param> /// <param name="creditType">Кредитная история</param> public Clients(string clientName, ClientsType clientType, CreditHistoryType creditType) { this.index = Guid.NewGuid(); this.name = clientName; this.Type = clientType; this.CreditType = creditType; }
public bool Create(ClientsType clientType) { try { dataClasses.ClientsTypes.InsertOnSubmit(clientType); dataClasses.SubmitChanges(); return(true); } catch { return(false); } }
public bool Update(ClientsType clientType) { throw new NotImplementedException(); }