コード例 #1
0
 public MessagesController(ICreateMessageService createMessageService, IGetMessagesService getMessagesService, IUserUpdateService userUpdateService)
 {
     _createMessageService = createMessageService;
     _getMessagesService   = getMessagesService;
     _userUpdateService    = userUpdateService;
 }
コード例 #2
0
 public async Task <IEnumerable <GetMessageServiceViewModel> > GetMessages([FromServices] IGetMessagesService service)
 => await service.ExecuteAsync();