您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ArticlesBusiness.cs 1.2KB

1234567891011121314151617181920212223242526272829303132
  1. using Luticate2.Utils.Business;
  2. using Luticate2.Utils.Dbo.Basic;
  3. using Luticate2.Utils.Dbo.PaginatedRequest;
  4. using Luticate2.Utils.Dbo.Result;
  5. using Luticate2.Utils.Interfaces;
  6. using WebApiWebSem.DataAccess;
  7. using WebApiWebSem.Dbo.Articles;
  8. namespace WebApiWebSem.Business
  9. {
  10. public class ArticlesBusiness : LuCrudBusiness<ArticlesDataAccess, ArticlesAddDbo, ArticlesDbo, ArticlesEditDbo, string>
  11. {
  12. private readonly DbPediaDataAccess _dbPediaDataAccess;
  13. public ArticlesBusiness(ArticlesDataAccess dataAccess, ILuNotificationsBusiness notificationsBusiness, DbPediaDataAccess dbPediaDataAccess) : base(dataAccess, notificationsBusiness)
  14. {
  15. _dbPediaDataAccess = dbPediaDataAccess;
  16. EntityType = "articles";
  17. }
  18. public override LuResult<LuPaginatedDbo<ArticlesDbo>> GetMultiple(LuPaginatedRequestDbo request)
  19. {
  20. return _dbPediaDataAccess.GetMultiple(request);
  21. // var result = _dbPediaDataAccess.GetMultiple(request);
  22. // if (result.Status == LuStatus.BackendError)
  23. // {
  24. // return base.GetMultiple(request);
  25. // }
  26. // return result;
  27. }
  28. }
  29. }