Example #1
0
        public async Task <object> GetToken([FromBody] GetAuthQuery query)
        {
            var result = await _lubyTasksHandler.ExecuteAsync(query);

            var token = Authentication.GetToken(result.Data.FirstOrDefault());

            return(result.GetTokenResult(token));
        }
Example #2
0
        public async Task <OperationResult <UserQuery> > Get()
        {
            var result = await _lubyTasksHandler.ExecuteAsync(new GetUserQuery());

            return(result);
        }
Example #3
0
        public async Task <OperationResult <Domain.Queries.ViewModels.Task> > List()
        {
            var result = await _lubyTasksHandler.ExecuteAsync(new ListTasksQuery());

            return(result);
        }