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