public ActionResult GetFile(string id)
        {
            id = id.Base64Decode();
            var receipt = _receiptApplication.GetById(Convert.ToInt32(id));

            ViewBag.file = receipt.imgBase64;

            return(View("GetFile"));
        }
        public ActionResult SetValidated(int idReceipt, ValidationViewModel model)
        {
            string desc = null;

            if (!String.IsNullOrEmpty(model.invalidateDescription))
            {
                desc = model.invalidateDescription;
            }

            var receipt = _receiptApplication.GetById(idReceipt);

            if (receipt != null)
            {
                string fileNews = "";
                if (model.isValidated == true)
                {
                    fileNews = Server.MapPath("~/Views/News/NewsVoucherView.cshtml");
                }
                else
                {
                    fileNews = Server.MapPath("~/Views/News/NewsCupomErrorView.cshtml");
                }

                _receiptApplication.SetValidated(idReceipt, model.isValidated, fileNews, ConfigurationManager.AppSettings["Ambiente"].ToString());
            }

            return(Json(new { status = "success" }, JsonRequestBehavior.AllowGet));
        }