/// <summary> /// Add a borrower to the system /// </summary> /// <param name="entity"></param> public async Task <int> Add(BorrowerDTO entity) { try { // call repository method to save borrower var test = _mapper.Map <BorrowerDTO, Borrower>(entity); return(await _repository.Add(test)); } catch (Exception ex) { throw ex; } }