public IHttpActionResult ProductoGrupoOrden(int id) { try { ServiciosCatalogos servicio = new ServiciosCatalogos(); ProductoGrupoOrden resp = servicio.ObtenerObjeto <ProductoGrupoOrden>(id); if (resp == null) { return(NotFound()); } return(Ok(resp)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }
public IHttpActionResult Medida(int id) { try { ServiciosCatalogos servicio = new ServiciosCatalogos(); Medida resp = servicio.ObtenerObjeto <Medida>(id); if (resp == null) { return(NotFound()); } return(Ok(resp)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }