Example #1
0
 public async Task <IActionResult> SelectEmployee(bool currentContext = false, bool invalid = false)
 {
     ViewBag.context        = currentContext;
     ViewBag.invalid        = invalid;
     ViewBag.ProjectManager = new SelectList(await _repo2.GetEmployeeByTitle("project manager"), "Id", "Name");
     return(View());
 }
        public async Task <IActionResult> EditProject(bool Success = false, int Id = 0)
        {
            ViewBag.Success        = Success;
            ViewBag.id             = Id;
            ViewBag.ProjectManager = new SelectList(await _repo2.GetEmployeeByTitle("project manager"), "Id", "Name");
            ViewBag.Customer       = new SelectList(await _repo3.GetCustomers(), "Id", "Name");
            var data = await _repo.GetProjectById(Id);

            return(View(data));
        }