Example #1
0
        public async Task <IActionResult> GetAccount(string email)
        {
            await Db.Connection.OpenAsync();

            var query  = new AccountQuery(Db);
            var result = await query.FindOneAsyncViaEmail(email);

            if (result is null)
            {
                return(new NotFoundResult());
            }
            return(new OkObjectResult(result));
        }