Exemple #1
0
 public async Task <long> Save(SelectorDTO entity)
 {
     try
     {
         return(await _selectorDAL.Save(_mapper.Map <Selector>(entity)));
     }
     catch (Exception ex)
     {
         return(0);
     }
 }
        public async Task <long> Save(SelectorDTO entity)
        {
            try
            {
                await _accountingSharedDSL.UpdateAccountName(entity.Id, entity.HeadName);

                return(await _selectorDAL.Save(_mapper.Map <Selector>(entity)));
            }
            catch (Exception ex)
            {
                return(0);
            }
        }