Esempio n. 1
0
        public ActionResult SendBack(int flowCaseId, string comments)
        {
            Approver      applicant = new Approver(WFEntities, this.Username);
            ApproveResult result    = applicant.Abort(flowCaseId, comments);

            applicant.NotificationSender.Send();
            ViewBag.approveResult = result;
            ViewBag.InboxCount    = applicant.CountInbox();
            return(PartialView("Result", applicant.GetFlowAndCase(flowCaseId)));
        }
Esempio n. 2
0
        public ActionResult Reject(int flowCaseId, string comments)
        {
            Approver      manager = new Approver(WFEntities, this.Username);
            ApproveResult result  = manager.Reject(flowCaseId, comments);

            manager.NotificationSender.Send();
            ViewBag.approveResult = result;
            ViewBag.InboxCount    = manager.CountInbox();
            return(PartialView("Result", manager.GetFlowAndCase(flowCaseId)));
        }