Exemplo n.º 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));
        }