public ActionResult ListOdata(OdataModel model)
        {
            var invoiceProxy = new InvoicesProxy(baseUrl);
            var result       = invoiceProxy.getOData(model);

            return(Json(result));
        }
        public ActionResult Edit(string id)
        {
            var invoiceProxy = new InvoicesProxy(baseUrl);
            var model        = invoiceProxy.getOData(new OdataModel()
            {
                id = id
            });

            if (!model.Any())
            {
                ViewBag.Error = "No existe el formulario";
                return(RedirectToAction("List"));
            }

            return(View(model.FirstOrDefault()));
        }