public IHttpActionResult Post(PostTodoRequest request) { var user = GetCurrentUser(); var todo = user.CreateTodo(request.Content); _userRepository.Save(user); return(Created("", new PostTodoResponse { Id = todo.Id })); }
public IHttpActionResult Post(PostTodoRequest request) { var user = GetCurrentUser(); var todo = user.CreateTodo(request.Content); _userRepository.Save(user); return Created("", new PostTodoResponse{Id = todo.Id}); }