Beispiel #1
0
        /*CREAR*/

        public IActionResult CrearArticulo()
        {
            ArticuloModel model = new ArticuloModel();

            model.llenarDatosGenerales(HttpContext, _context);
            return(View(model));
        }
Beispiel #2
0
        public IActionResult EditarArticulo(int?id)
        {
            int           idProducto  = Convert.ToInt32(id);
            ArticuloDao   articuloDao = new ArticuloDao();
            Articulo      Articulo    = ArticuloDao.get(_context, idProducto);
            ArticuloModel model       = new ArticuloModel(HttpContext, _context, Articulo);

            model.llenarDatosGenerales(HttpContext, _context);
            return(View(model));
        }