public IActionResult Schedule() { var user = HttpContext.User; var claim = user.Claims.First(c => c.Type == ClaimTypes.Email); var email = claim.Value; User currentUser = _userService.GetOne(email); List <Schedule> scheduleList = _scheduleService.GetOneUserAllSchedule(currentUser.ID); List <Slot> slotList = _slotService.GetOneUsersAllSlots(currentUser.ID); List <Tasks> taskList = _taskService.GetOneUserAllTasks(currentUser.ID); List <Column> columnList = _columnService.GetAllCollumnToOneUser(currentUser.ID); OneUserSchedules oneUserSchedules = new OneUserSchedules(currentUser, scheduleList, columnList, slotList, taskList); _userActivityService.InsertActivity(currentUser.ID, "User request all he/she's schedule(s)", DateTime.Now); return(Json(oneUserSchedules)); }