12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using Microsoft.AspNetCore.Identity;
- using Microsoft.AspNetCore.WebUtilities;
- using Microsoft.EntityFrameworkCore;
- using Microsoft.Extensions.Configuration;
- using MTWorkHR.Application.Identity;
- using MTWorkHR.Application.Mapper;
- using MTWorkHR.Application.Models;
- using MTWorkHR.Core.Global;
- using MTWorkHR.Core.IRepositories;
- using MTWorkHR.Core.UnitOfWork;
- using MTWorkHR.Infrastructure.Entities;
- using MTWorkHR.Application.Services.Interfaces;
- using MTWorkHR.Core.Email;
- using MTWorkHR.Core.Entities;
- using MTWorkHR.Infrastructure.UnitOfWorks;
- namespace MTWorkHR.Application.Services
- {
- public class MeetingService : BaseService<Meeting, MeetingDto, MeetingDto>, IMeetingService
- {
- private readonly IUnitOfWork _unitOfWork;
- public MeetingService(IUnitOfWork unitOfWork):base(unitOfWork)
- {
- _unitOfWork = unitOfWork;
- }
- public override async Task<MeetingDto> GetById(long id)
- {
- var entity = await _unitOfWork.Meeting.GetByIdWithAllChildren(id);
- var response = MapperObject.Mapper.Map<MeetingDto>(entity);
- return response;
- }
- //public override async Task<List<MeetingDto>> GetAll()
- //{
- // var Meetings = await _unitOfWork.Meeting.GetAllAsync();
- // var response = MapperObject.Mapper.Map<List<MeetingDto>>(Meetings);
- // return response;
- //}
- //public override async Task Delete(long id)
- //{
- // var entity = await _unitOfWork.Meeting.GetByIdAsync(id);
- // await _unitOfWork.Meeting.DeleteAsync(entity);
- //}
- }
- }
|