public ActionResult Edit(TodoItemDTO todoItem) { if (ModelState.IsValid) { _itemService.Change(todoItem); return(RedirectToAction("Details", "TodoCategory", new { id = todoItem.CategoryId })); } return(View(todoItem)); }