//public JobController(IJobBLL jobBLL) //{ // _jobBLL = jobBLL; //} // GET: Job public ActionResult CreateJob(ReportRequestViewModel reportRequest) { if (ModelState.IsValid) { var job = _jobBLL.CreateJob(reportRequest); //var queueInstance = JobQueueService.GetInstance(); //queueInstance.Enqueue(job); } else { ModelState.AddModelError("", "Fill in all the fields"); } var stakeHolder = _stakeHolderBLL.GetStakeHolderById(reportRequest.StakeHolderId); return(RedirectToAction("index", "ReportRequest", new RouteValueDictionary(stakeHolder))); }
//public ReportRequestController(IJobBLL jobBLL) //{ // _jobBLL = jobBLL; //} // GET: ReportIssue public ActionResult Index() { var stakeHolder = _stakeHolderBLL.GetStakeHolderById((int)Session[Constants.StakeHolderId]); return(View(stakeHolder)); }