Пример #1
0
        public ActionResult DeleteGeneralPayments(string Id)
        {
            int AccountmasterId = DecryptQueryString(Id);

            if (AccountmasterId < 1)
            {
                return(RedirectToAction("GeneralPaymentsLookup"));
            }

            ResultDto resultDto = _generalpaymentsService.Delete(AccountmasterId, 1);

            TempData["Result"] = resultDto;

            return(RedirectToAction("GeneralPaymentsLookup"));
        }
Пример #2
0
        public ActionResult DeleteJournal(string type, string Id)
        {
            int AccountmasterId = DecryptQueryString(Id);

            if (AccountmasterId < 1)
            {
                return(RedirectToAction("GroupJournalLookUp", new { type = type }));
            }

            GroupGeneralPaymentsService _groupGeneralPayemntService = new GroupGeneralPaymentsService();

            ResultDto resultDto = _groupGeneralPayemntService.Delete(AccountmasterId, UserInfo.UserID);

            TempData["Result"] = resultDto;

            return(RedirectToAction("GroupJournalLookUp", new { type = type }));
        }