Example #1
0
 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);
 }
Example #2
0
        public async Task <IActionResult> DeleteMasterData([FromBody] SellPolicyDeleteMasterData data)
        {
            var d = await _sellPolicyManager.DeleteMasterData(data);

            return(Ok(d));
        }
Example #3
0
 public Task <bool> DeleteMasterData(SellPolicyDeleteMasterData data)
 {
     return(_sellPolicyRepository.DeleteMasterData(data));
 }