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);
 }
Esempio n. 2
0
 public Client Update(Client client)
 {
     return(_clientDao.Update(client));
 }
Esempio n. 3
0
 public string Update(int subnumber, int?idcoach)
 {
     return(_clientdao.Update(subnumber, idcoach));
 }
Esempio n. 4
0
 public Client Update(long id, string name, string lastName, string phoneNumber)
 {
     return(_clientDao.Update(id, name, lastName, phoneNumber));
 }