public async Task <int> DeleteContactNumber(DeleteContactNumberModel model) { try { _dbconnection.StoredProcedure = Constants.DeleteContactNumberStoredProcedure; _dbconnection.Parameters = model; return(await _dapperRepository.Execute(_dbconnection)); } catch (Exception ex) { throw ex; } }
public async Task <ActionResult> DeleteContactNumber([FromBody] DeleteContactNumberModel model) { var result = await _addressbookservice.DeleteContactNumber(model); return(Json(new { success = true, response = result })); }