Esempio n. 1
0
 public async Task <long> Save(DriverDTO entity)
 {
     try
     {
         return(await _driverDAL.Save(_mapper.Map <Driver>(entity)));
     }
     catch (Exception ex)
     {
         return(0);
     }
 }
Esempio n. 2
0
 public async Task <long> Save(DriverDTO entity)
 {
     try
     {
         if (entity.Id > 0)
         {
             await _accountingSharedDSL.UpdateAccountName(entity.Id, entity.FullName);
         }
         return(await _driverDAL.Save(_mapper.Map <Driver>(entity)));
     }
     catch (Exception ex)
     {
         return(0);
     }
 }