예제 #1
0
        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.."
            });
        }
예제 #2
0
 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.." };
 }