Changeset 95d80e4 for src/FinkiChattery/FinkiChattery.Queries/Questioning/GetQuestionState/GetQuestionStateQuery.cs
- Timestamp:
- 10/21/21 19:16:53 (3 years ago)
- Branches:
- dev
- Children:
- 3b395c5
- Parents:
- 9885bee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/FinkiChattery/FinkiChattery.Queries/Questioning/GetQuestionState/GetQuestionStateQuery.cs
r9885bee r95d80e4 1 1 using FinkiChattery.Common.Mediator.Contracs; 2 using FinkiChattery.Persistence.Repositories;3 2 using FinkiChattery.Persistence.Repositories.Contracts; 3 using FinkiChattery.Persistence.UnitOfWork; 4 4 using System; 5 5 using System.Threading; … … 20 20 public class GetQuestionStateQueryHandler : IQueryHandler<GetQuestionStateQuery, QuestionStateDto> 21 21 { 22 public GetQuestionStateQueryHandler(I QuestionRepo questionRepo)22 public GetQuestionStateQueryHandler(IUnitOfWork unitOfWork) 23 23 { 24 QuestionRepo = questionRepo;24 UnitOfWork = unitOfWork; 25 25 } 26 26 27 public I QuestionRepo QuestionRepo{ get; }27 public IUnitOfWork UnitOfWork { get; } 28 28 29 29 public async Task<QuestionStateDto> Handle(GetQuestionStateQuery request, CancellationToken cancellationToken) 30 30 { 31 return await QuestionRepo.GetQuestionState(request.QuestionUid);31 return await UnitOfWork.Questions.GetQuestionState(request.QuestionUid); 32 32 } 33 33 }
Note:
See TracChangeset
for help on using the changeset viewer.