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