示例#1
0
        public async Task <IActionResult> ResourceAllocation(bool success = false, bool success2 = false, bool success3 = true)
        {
            ViewData["employees"] = await _repo2.GetEmployees();

            ViewData["designation"] = await _repo2.DesignationCount();

            ViewBag.success        = success;
            ViewBag.success2       = success2;
            ViewBag.success3       = success3;
            ViewBag.ProjectManager = new SelectList(await _repo2.GetEmployeeByTitle("project manager"), "Id", "Name");
            var data = await _repo2.AllocateResources1();

            return(View(data));
        }
        public async Task <IActionResult> ProjectResources()
        {
            ViewBag.Total = await _repo4.TotalResources();

            ViewBag.Allocated = await _repo4.AllocatedResources();

            ViewBag.NonAllocated = await _repo4.NonAllocatedResources();

            ViewData["nonalloted"] = await _repo4.NonAllocatedResourcesDetailsAsync();

            ViewData["Alloted"] = await _repo2.GetEmployees();

            return(View());
        }