public Client StoreClient(Client client) { if (client != null) { if (client.Id == 0) { client.CreatedOn = DateTime.Now; _clientDao.Create(client); } else { client.LastUpdatedOn = DateTime.Now; _clientDao.Update(client); } } return(client); }
public Client Create(string name, string lastName, string phoneNumber) { return(_clientDao.Create(name, lastName, phoneNumber)); }