// GET: Docentes public ActionResult Index() { return(View(docentesdatamodel.getall())); }
// GET: api/DocentesApi public IEnumerable <DocentesModel> Get() { //return new string[] { "value1", "value2" }; return(datamodel.getall()); }