public IHttpActionResult DeletePaymentTaggingDetailsSet(RightsSellingPaymentTaggingModel _RightsSellingPaymentTaggingModel) { string status = string.Empty; try { if (_RightsSellingPaymentTaggingModel.PaymentTaggingId != 0) { if (_RightsSellingPaymentTaggingModel.Type == "rights") { RightsSellingPaymentTagging obj_RightsSellingPaymentTaggingModel = _RightsSelling.getRightsSellingPaymentTaggingById(_RightsSellingPaymentTaggingModel.PaymentTaggingId); obj_RightsSellingPaymentTaggingModel.Deactivate = "Y"; obj_RightsSellingPaymentTaggingModel.DeactivateBy = _RightsSellingPaymentTaggingModel.DeactivateBy; obj_RightsSellingPaymentTaggingModel.DeactivateDate = DateTime.Now; _RightsSelling.DeleteRightsSellingPaymentTagging(obj_RightsSellingPaymentTaggingModel); } else { PermissionsOutboundPaymentTagging obj_PermissionsOutboundPaymentTagging = _PermissionsOutboundService.getPermissionsOutboundPaymentTaggingById(_RightsSellingPaymentTaggingModel.PaymentTaggingId); obj_PermissionsOutboundPaymentTagging.Deactivate = "Y"; obj_PermissionsOutboundPaymentTagging.DeactivateBy = _RightsSellingPaymentTaggingModel.DeactivateBy; obj_PermissionsOutboundPaymentTagging.DeactivateDate = DateTime.Now; _PermissionsOutboundService.DeletePermissionsOutboundPaymentTagging(obj_PermissionsOutboundPaymentTagging); } status = "OK"; } return(Json(status)); } catch (ACSException ex) { _ILog.LogException("", Severity.ProcessingError, "PaymentTaggingMasterController.cs", "DeletePaymentTaggingDetailsSet", ex); return(Json(ex.InnerException.Message)); } catch (Exception ex) { _ILog.LogException("", Severity.ProcessingError, "PaymentTaggingMasterController.cs", "DeletePaymentTaggingDetailsSet", ex); return(Json(ex.InnerException.Message)); } }
public void DeleteRightsSellingPaymentTagging(RightsSellingPaymentTagging RightsSellingPaymentTagging) { _RightsSellingPaymentTagging.Update(RightsSellingPaymentTagging); }
public void InsertRightsSellingPaymentTagging(RightsSellingPaymentTagging RightsSellingPaymentTagging) { _RightsSellingPaymentTagging.Insert(RightsSellingPaymentTagging); }