Ejemplo n.º 1
0
        public async Task <IActionResult> EditTask(int id, bool success = false)
        {
            ViewBag.Success = success;
            ViewBag.Id      = id;
            var model = await _repo2.GetTasksById(id);

            ViewBag.Name = await _repo2.GetEmployeeNameById(model.EmployeeId);

            ViewBag.Project = (await _repo.GetProjectById(model.projectId)).Name;

            return(View(model));
        }