// GET api/Carrito/5 // Retrieve by id public IHttpActionResult Get(int id) { try { var mng = new CarritoManager(); var carrito = new Carrito { IdCarrito = id }; carrito = mng.RetrieveById(carrito); apiResp = new ApiResponse(); apiResp.Data = carrito; return(Ok(apiResp)); } catch (BussinessException bex) { return(InternalServerError(new Exception(bex.AppMessage.Message))); } }