public UserResponse AuthenticateUser(UserLogin UserLogin) { UserMapper userMapper = new UserMapper(); var userDetail = userLoginRepository.GetLoginDetailsByUsername(UserLogin); var userResponse = userMapper.MapUserDetailToUserResponse(userDetail); return(userResponse); }