Esempio n. 1
0
 public IActionResult EditTodoList([FromBody] TodoList todoList)
 {
     int.TryParse(User.Identity.Name, out int userId);
     todoList.OwnerId = userId;
     if (_todoListService.EditTodoList(todoList))
     {
         return(Ok(todoList));
     }
     return(BadRequest("There is something wrong with todoList info"));
 }
Esempio n. 2
0
 public bool EditTodoList([FromServices] ITodoListService todoListService, [FromBody] UpdateTodoDto todo)
 {
     return(todoListService.EditTodoList(todo));
 }