Exemplo n.º 1
0
        public UserOutputDTO Authentication(LoginAuthenticationDTO login)
        {
            User user = this.userService.Authenticate(login.Email, login.Password);

            if (user != null)
            {
                UserOutputDTO userOutput = new UserOutputDTO()
                {
                    Name  = user.Name,
                    Email = user.Email,
                    Id    = user.Id
                };
                return(userOutput);
            }
            return(null);
        }
Exemplo n.º 2
0
 public UserOutputDTO LoginAuthentication(LoginAuthenticationDTO login)
 {
     return(this.userAppService.Authentication(login));
 }