public IActionResult DeleteToDoList(int toDoListId) { try { toDoListRepository.DeleteToDoList(toDoListId); toDoListRepository.Save(); return(Ok()); } catch (Exception ex) { return(BadRequest(ex.Message)); } }