コード例 #1
0
 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);
 }
コード例 #2
0
 public Client Create(string name, string lastName, string phoneNumber)
 {
     return(_clientDao.Create(name, lastName, phoneNumber));
 }