예제 #1
0
 private void _add <T>(Case <T> _case)
 {
     currentCase = _case;
     currentCase.Add(onConditionChange); //currentCase.Add(onConditionChange, 1000);
     cases.Add(currentCase);
     check();
 }
        public IActionResult Create([Bind("LoanAmount,OfferToPurchaseDoc,Applicant,User,Status,CaseSlaBreach")] Case cases, int applicantid, int userid)
        {
            // server side pagenation ?
            cases.Applicant   = _applicants.Get(applicantid);
            cases.User        = _users.Get(userid);
            cases.DateCreated = DateTime.Now;
            cases.Status      = _status.Get("Created");
            _cases.Add(cases);

            Task.WaitAll(Task.Delay(1000));
            return(RedirectToAction("Index", "Applicant", new { id = userid }));
        }