Example #1
0
        public ActionResult Create(Comprobante comprobante)
        {
            if (ModelState.IsValid)
            {
                comprobantesManager.InsertComprobante(comprobante);
                return(RedirectToAction("Index", "CuentasAsientos", new { id = comprobante.Id }));
            }

            ViewBag.FechaActual = DateTime.Now.ToString("dd'/'MM'/'yyyy");
            ViewBag.FacilityId  = new SelectList(facilitiesManager.GetAllFacilities(), "Id", "NombreDespliegue");
            return(View(comprobante));
        }