using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using WebApplication15.Models;
namespace WebApplication15.Controllers
{
public class EmployeesController : ApiController
{
public IQueryable<Employee> GetEmployee()
{
List<Employee> list = new List<Employee>();
list.Add(new Employee { id = 1, Name = "Name1", Address = "Address1" });
list.Add(new Employee { id = 2, Name = "Name2", Address = "Address2" });
list.Add(new Employee { id = 3, Name = "Name3", Address = "Address3" });
list.Add(new Employee { id = 4, Name = "Name4", Address = "Address4" });
list.Add(new Employee { id = 5, Name = "Name5", Address = "Address5" });
list.Add(new Employee { id = 6, Name = "Name6", Address = "Address6" });
return list.AsQueryable();
}
}
}