public IActionResult SaveItem(ToDoItemDto model) { if (model.Id == Guid.Empty) { model.Id = Guid.NewGuid(); _toDoItemService.Add(model); } else { _toDoItemService.Update(model); } return(Ok()); }