public IActionResult ChangeTodoPosition(ChangeTodoPositionPostModel postModel) { if (ModelState.IsValid) { _cmdHandler.Handle(new ChangeTodoPosition(postModel.TodoId, postModel.Offset)); } return(PartialView("_TodoListPartial", todoListPartialViewModel())); }
public IActionResult ChangeTodoPosition(ChangeTodoPositionPostModel postModel) { if (!ModelState.IsValid) { return(BadRequest()); } _cmdHandler.Handle(new ChangeTodoPosition(postModel.TodoId, postModel.Offset)); return(Ok()); }