Example #1
0
 public UserDto Get(string email, string password)
 {
     try
     {
         var userDto = UserBLManager.ValidateUser(email, password);
         userDto.token = Token.GenerateToken(userDto.Id.ToString());
         return(userDto);
     }
     catch (UnauthorizedAccessException)
     {
         throw new HttpResponseException(HttpStatusCode.Unauthorized);
     }
 }