public IHttpActionResult GetAlumnosID() { var headers = Request.Headers; if (headers.Contains("ID")) { return(Ok(ADO_Alumnos.GetAlumno(Convert.ToInt32(headers.GetValues("ID").First())))); } return(BadRequest("Error")); }
public IHttpActionResult GetAlumnosID(int ID) { return(Ok(ADO_Alumnos.GetAlumno(ID))); }