示例#1
0
        public async Task <ActionResult> Finished()
        {
            try
            {
                var userId = User.Identity.GetUserId <int>();

                var result = await _taskService.GetAllFinishedTasksAsync(userId);

                if (result != null)
                {
                    return(View(result));
                }
                else
                {
                    return(JError());
                }
            }
            catch (Exception ex)
            {
                return(JError());
            }
        }