Пример #1
0
        public async Task <IActionResult> StaffDash()
        {
            string user        = User.FindFirst("Index").Value;
            var    Currentuser = await _taskRepository.GetCurrentUser(user);

            ViewBag.photo = Currentuser.PhotoURL;

            int id = Currentuser.EmpId;

            ViewBag.Id = id;
            var data = await _taskRepository.GetTaskListAsync(id);

            return(View(data));
        }
        public async Task <IViewComponentResult> InvokeAsync(int id)
        {
            var data = await _taskRepo.GetTaskListAsync(id);

            return(View(data));
        }