Example #1
0
        public async Task <IActionResult> AddTask(EditModel model)
        {
            var task = model.UserTask;

            await _userTaskService.CreateAsync(task.TaskGroupId, task.Name, task.Deadline, task.UserId, (Status)Int32.Parse(task.Status));

            return(RedirectToAction("Edit", "TaskGroup", new { groupId = task.TaskGroupId }));
        }