public DTOAuthenticationResponse Login(DTOForLogin dTOForLogin) { DTOAuthenticationResponse dTOAuthenticationResponse = new DTOAuthenticationResponse(); var data = _authRepo.Login(dTOForLogin.Username, dTOForLogin.Password); dTOAuthenticationResponse.Username = data.UserName; dTOAuthenticationResponse.Secret = data.SecretToken; return(dTOAuthenticationResponse); }
public DTOLoginView(DTOAuthenticationResponse response) : base(response.Token) { Response = response; }