// GET: /<controller>/ public IActionResult Index() { var UserId = int.Parse(HttpContext.Session.GetString("UserId")); var model = new ApprovalIndexViewModel { FirstApprovalItems = _Services.GetAllFirstApprovals(UserId), SecondApprovalItems = _Services.GetAllSecondApprovals(UserId), IsWithFirstApproval = _Services.IsWithFirstApproval(UserId), IsWithSecondApproval = _Services.IsWithSecondApproval(UserId), }; return(View(model)); }