public async Task <bool> DeleteMasterData(SellPolicyDeleteMasterData data) { using (IDbConnection dbConnection = this.GetConnection()) { try { dbConnection.Open(); var result = await dbConnection.QueryMultipleAsync("SellPolicy_DeleteMasterData", data, commandType : CommandType.StoredProcedure); } catch (Exception ex) { return(false); } finally { dbConnection.Close(); } } return(true); }
public async Task <IActionResult> DeleteMasterData([FromBody] SellPolicyDeleteMasterData data) { var d = await _sellPolicyManager.DeleteMasterData(data); return(Ok(d)); }
public Task <bool> DeleteMasterData(SellPolicyDeleteMasterData data) { return(_sellPolicyRepository.DeleteMasterData(data)); }