// GET: Customer public ActionResult Index() { mytestdbEntities DB = new mytestdbEntities(); List <customer> c = DB.customers.ToList(); return(View(c)); }
public IHttpActionResult GetAllCompanies() { var db = new mytestdbEntities(); var companies = db.Companies.Where(xx => true); return(ResponseMessage(Request.CreateResponse(HttpStatusCode.OK, companies))); }