TbdmProvService.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using AutoMapper;
  2. using LinqKit;
  3. using Ropin.Inspection.Common.Accessor.Interface;
  4. using Ropin.Inspection.Model;
  5. using Ropin.Inspection.Model.Entities;
  6. using Ropin.Inspection.Repository;
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Linq;
  10. using System.Linq.Expressions;
  11. using System.Text;
  12. using System.Threading.Tasks;
  13. namespace Ropin.Inspection.Service
  14. {
  15. public class TbdmProvService : ITbdmProvService
  16. {
  17. private readonly ITbdmProvRepository _repository;
  18. private readonly IMapper _mapper;
  19. private readonly IClaimsAccessor _claims;
  20. public TbdmProvService(IClaimsAccessor claims, ITbdmProvRepository repository, IMapper mapper)
  21. {
  22. _repository = repository;
  23. _mapper = mapper;
  24. _claims = claims;
  25. }
  26. public async Task<List<TbdmProvViewModel>> GetProvListTreeAsync()
  27. {
  28. return await _repository.GetProvListTreeAsync();
  29. }
  30. public Task<int> UpdateOneAsync(TbdmProvViewModel viewModel, params string[] fields)
  31. {
  32. throw new NotImplementedException();
  33. }
  34. public Task<bool> IsExistAsync(Guid id)
  35. {
  36. throw new NotImplementedException();
  37. }
  38. public Task<IEnumerable<TbdmProvViewModel>> GetByConditionAsync(Expression<Func<TbdmProvViewModel, bool>> expression)
  39. {
  40. throw new NotImplementedException();
  41. }
  42. public Task<IEnumerable<TbdmProvViewModel>> GetAllAsync()
  43. {
  44. throw new NotImplementedException();
  45. }
  46. public Task CreateOneAsync(TbdmProvViewModel viewModel)
  47. {
  48. throw new NotImplementedException();
  49. }
  50. public Task<TbdmProvViewModel> GetByIdAsync(Guid id)
  51. {
  52. throw new NotImplementedException();
  53. }
  54. public Task DeleteAsync(Guid id)
  55. {
  56. throw new NotImplementedException();
  57. }
  58. }
  59. }