예제 #1
0
 public async Task <long> Save(DebitBorrowDTO entity)
 {
     try
     {
         return(await _debitBorrowDAL.Save(_mapper.Map <DebitBorrow>(entity)));
     }
     catch (Exception ex)
     {
         return(0);
     }
 }
예제 #2
0
 public async Task <IActionResult> Save(DebitBorrowDTO model) => Ok(await _debitBorrowDSL.Save(model));