Exemple #1
0
 public async Task <long> Save(StationDTO entity)
 {
     try
     {
         return(await _stationDAL.Save(_mapper.Map <Station>(entity)));
     }
     catch (Exception ex)
     {
         return(0);
     }
 }
Exemple #2
0
 public async Task <long> Save(StationDTO entity)
 {
     try
     {
         if (entity.Id > 0)
         {
             await _accountingSharedDSL.UpdateAccountName(entity.Id, entity.OwnerName);
         }
         return(await _stationDAL.Save(_mapper.Map <Station>(entity)));
     }
     catch (Exception ex)
     {
         return(0);
     }
 }