public async Task <IList <GetContactNumbersModel> > GetContactNumbers(GetContactDetailsById model) { try { _dbconnection.StoredProcedure = Constants.GetContactNumbersByContactIdStoredProcedure; _dbconnection.Parameters = model; return(await _dapperRepository.QueryList <GetContactNumbersModel>(_dbconnection)); } catch (Exception ex) { throw ex; } }
public async Task <ActionResult> GetEmailAddresses([FromBody] GetContactDetailsById modal) { IList <GetEmailAddressModel> result = await _addressbookservice.GetEmails(modal); return(Json(new { success = true, response = result })); }