Beispiel #1
0
        // GET: Manager/Create
        public IActionResult Create()
        {
            var emptasks   = iemptaskservice.GetAllEmpByManagerId(int.Parse(HttpContext.Session.GetString("UserId")));
            var tasks      = iemptaskservice.GetAllTasks();
            var Taskstatus = iemptaskservice.GetAllTaskStatus();

            ViewData["EmpId"]        = new SelectList(emptasks, "EmpId", "EmpFname");
            ViewData["TaskId"]       = new SelectList(tasks, "TaskId", "TaskName");
            ViewData["TaskStatusId"] = new SelectList(Taskstatus, "TaskStatusId", "TaskStatus1");
            return(View());
        }