public AjaxContinuation EditTodoCommand(TodoEditModel input)
        {
            var todo = new Todo(input.ID)
            {
                Description = input.Description, Title = input.Title
            };
            bool successful = todoService.editTodo(input.Username, todo);

            return(new AjaxContinuation()
            {
                ShouldRefresh = false, Success = successful, Message = successful ? "Changes saved!" : "Changes not saved.."
            });
        }
 public AjaxContinuation EditTodoCommand(TodoEditModel input)
 {
     var todo = new Todo(input.ID) { Description = input.Description, Title = input.Title };
     bool successful = todoService.editTodo(input.Username, todo);
     return new AjaxContinuation() { ShouldRefresh = false, Success = successful, Message = successful ? "Changes saved!" : "Changes not saved.." };
 }