public IHttpActionResult PutHORARIOS_UBICACIONES(int id, HORARIOS_UBICACIONES hORARIOS_UBICACIONES)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != hORARIOS_UBICACIONES.ID_HORARIO)
            {
                return(BadRequest());
            }

            db.Entry(hORARIOS_UBICACIONES).State = EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!HORARIOS_UBICACIONESExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult GetHORARIOS_UBICACIONES(int id)
        {
            HORARIOS_UBICACIONES hORARIOS_UBICACIONES = db.HORARIOS_UBICACIONES.Find(id);

            if (hORARIOS_UBICACIONES == null)
            {
                return(NotFound());
            }

            return(Ok(hORARIOS_UBICACIONES));
        }
        public IHttpActionResult PostHORARIOS_UBICACIONES(HORARIOS_UBICACIONES hORARIOS_UBICACIONES)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.HORARIOS_UBICACIONES.Add(hORARIOS_UBICACIONES);
            db.SaveChanges();

            return(CreatedAtRoute("DefaultApi", new { id = hORARIOS_UBICACIONES.ID_HORARIO }, hORARIOS_UBICACIONES));
        }
        public IHttpActionResult DeleteHORARIOS_UBICACIONES(int id)
        {
            HORARIOS_UBICACIONES hORARIOS_UBICACIONES = db.HORARIOS_UBICACIONES.Find(id);

            if (hORARIOS_UBICACIONES == null)
            {
                return(NotFound());
            }

            db.HORARIOS_UBICACIONES.Remove(hORARIOS_UBICACIONES);
            db.SaveChanges();

            return(Ok(hORARIOS_UBICACIONES));
        }