示例#1
0
        public async Task <IActionResult> GetMyTasks(int id)
        {
            var user = await GetCurrentUserAsync();

            var tasks = _prepOpsDataAccess.GetTasksAssignedToUser(id, user);

            var taskView = tasks.Select(t => new TaskSignupViewModel(t));

            return(Json(taskView));
        }