public AjaxContinuation DeleteTodoCommand(TodoDeleteModel input) { bool successful = todoService.deleteTodo(input.Username, input.ID); return(new AjaxContinuation() { ShouldRefresh = successful, Success = successful, Message = successful ? "Deleted!" : "Not deleted.." }); }
public AjaxContinuation DeleteTodoCommand(TodoDeleteModel input) { bool successful = todoService.deleteTodo(input.Username, input.ID); return new AjaxContinuation() { ShouldRefresh = successful, Success = successful, Message = successful ? "Deleted!" : "Not deleted.." }; }