Ejemplo n.º 1
0
        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 DeletePermissionsOutboundPaymentTagging(PermissionsOutboundPaymentTagging PermissionsOutboundPaymentTagging)
 {
     _PermissionsOutboundPaymentTagging.Update(PermissionsOutboundPaymentTagging);
 }
 public void InsertPermissionsOutboundPaymentTagging(PermissionsOutboundPaymentTagging PermissionsOutboundPaymentTagging)
 {
     _PermissionsOutboundPaymentTagging.Insert(PermissionsOutboundPaymentTagging);
 }