Пример #1
0
 public IActionResult CompleteTodo(int id, string searchString, bool?isCompleted, int page, int pageSize)
 {
     try
     {
         todoItemService.CompleteTodoItem(id);
         return(Index(searchString, isCompleted, page, pageSize));
     }
     catch (Exception ex)
     {
         _logger.LogError(ex.Message);
         return(Error());
     }
 }