// GET api/<controller>
 public IEnumerable<object> Get()
 {
     var ctx = new RssReaderDbContext();
     var query = ctx.FeedItems.Select(f => new
     {
         Id = f.Id,
         Title = f.Title,
         Url = f.Url,
         DateSubscribed = f.DateSubscribed
     });
     return query;
 }
        public override bool ValidateUser(string username, string password)
        {
            RssReaderUser user;

            if (!(IsNullOrEmpty(username) && IsNullOrEmpty(password)))
            {
                return(false);
            }
            else
            {
                passwordProvider = new PasswordProvider();
                using (db = new RssReaderDbContext())
                {
                    user = usersRepository.GetUser(username);
                    if (user == null) //user does not exist
                    {
                        return(false);
                    }
                    string hashedPassword = passwordProvider.CreateHashedPassword(password, user.Salt);
                    return(hashedPassword == user.Password);
                }
            }
        }