Exemple #1
0
        public ActionResult RequestDetails(int id, string type)
        {
            ViewBag.ApproveActionName = type + "Approve";
            var request = _creditRequestService.GetModel(new ModelQuery {
                Id = id
            }).Value;
            var employee = GetEmployee();

            if (request.LatestEmployeeHandledBy != null && request.LatestEmployeeHandledBy.Id != employee.Id)
            {
                return(RedirectToAction("Index"));
            }
            _creditRequestService.AssignToEmployee(request, employee);
            return(View(request));
        }