Exemplo n.º 1
0
    public ActionResult <Model.User> Get(string username)
    {
        var user = _getUser.Execute(username);

        if (user == null)
        {
            return(NotFound());
        }

        return(Ok(user));
    }
        public async Task <UserReadModel> Get(Guid id)
        {
            var user = await _getUser.Execute(id);

            return(UserReadModel.From(user));
        }