ProjectService.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using Microsoft.AspNetCore.Identity;
  2. using Microsoft.AspNetCore.WebUtilities;
  3. using Microsoft.EntityFrameworkCore;
  4. using Microsoft.Extensions.Configuration;
  5. using MTWorkHR.Application.Identity;
  6. using MTWorkHR.Application.Mapper;
  7. using MTWorkHR.Application.Models;
  8. using MTWorkHR.Core.Global;
  9. using MTWorkHR.Core.IRepositories;
  10. using MTWorkHR.Core.UnitOfWork;
  11. using MTWorkHR.Identity.Entities;
  12. using MTWorkHR.Application.Services.Interfaces;
  13. using MTWorkHR.Core.Email;
  14. using MTWorkHR.Core.Entities;
  15. using MTWorkHR.Infrastructure.UnitOfWorks;
  16. namespace MTWorkHR.Application.Services
  17. {
  18. public class ProjectService : BaseService<Project, ProjectDto, ProjectDto>, IProjectService
  19. {
  20. private readonly IUnitOfWork _unitOfWork;
  21. //private readonly AppSettingsConfiguration _configuration;
  22. //private readonly GlobalInfo _globalInfo;
  23. public ProjectService(IUnitOfWork unitOfWork):base(unitOfWork)
  24. {
  25. _unitOfWork = unitOfWork;
  26. }
  27. //public override async Task<ProjectDto> GetById(long id)
  28. //{
  29. // var entity = await _unitOfWork.Project.GetByIdAsync(id);
  30. // var response = MapperObject.Mapper.Map<ProjectDto>(entity);
  31. // return response;
  32. //}
  33. //public override async Task<List<ProjectDto>> GetAll()
  34. //{
  35. // var projects = await _unitOfWork.Project.GetAllAsync();
  36. // var response = MapperObject.Mapper.Map<List<ProjectDto>>(projects);
  37. // return response;
  38. //}
  39. //public override async Task Delete(long id)
  40. //{
  41. // var entity = await _unitOfWork.Project.GetByIdAsync(id);
  42. // await _unitOfWork.Project.DeleteAsync(entity);
  43. //}
  44. }
  45. }