/// <summary> /// This method is for creating client with client name, location and district /// </summary> public void CreateClient(string clientName, string clientLocation, string clientDistrict) { var client = new Client(); client.ClientName = clientName; client.ClientLocation = clientLocation; client.ClientDistrict = clientDistrict; client.CreateDate = DateTime.Now; client.CreatedByUserId = Utils.getInstance.GetCurrentUserId(); try { clientDao.AddClient(client.CreatedBy, client); } catch (Exception) { throw new FailedToCreateRecordException(); } }
public void AddClient(Client client) { _clientDao.AddClient(client); }