using System;
using System.Collections.Generic;
using System.Data.Entity.SqlServer;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace shanuAngularWordGame.Controllers
{
    public class wordGameController : ApiController
    {
        wordGameDBEntities objAPI = new wordGameDBEntities();

        //get all Images
    [HttpGet]
    public IEnumerable<shanuAngularWordGame.wordDetail> Get()
        {
          
            return objAPI.wordDetails.OrderBy(x => Guid.NewGuid()).Take(5).AsEnumerable();
            //return objAPI.ImageDetails.AsEnumerable().OrderByDescending(item => item.ImageID );  

        }
    }
}
