Web Api Using AngularJS
using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using System.Web.Http.Description; using AngularJSSample.Models; namespace AngularJSSample.Controllers { [RoutePrefix("api/employee")] public class EmployeesController : ApiController { private EmployeeEntities db = new EmployeeEntities(); // GET: api/Employees [HttpGet] [AllowAnonymous] [Route("getemployee")] public IQueryable<Employee> GetEmployees() { return db.Employees; } // GET: api/Employees/5 ...