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;
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- }
|