コード例 #1
0
        public ActionResult DetalleArticulo(DetalleArticuloModels category, HttpPostedFileBase image)
        {
            if (ModelState.IsValid)
            {
                if (image != null)
                {
                    //image.ContentType;
                    int    length = image.ContentLength;
                    byte[] buffer = new byte[length];
                    image.InputStream.Read(buffer, 0, length);
                    //ategory.Imagen = buffer;
                }

                //db.Categories.AddObject(category);
                //db.SaveChanges();
                //return RedirectToAction("Index");
            }

            return(PartialView(category));
        }
コード例 #2
0
        public ActionResult DetalleArticulo()
        {
            DetalleArticuloModels model = new DetalleArticuloModels();

            return(PartialView(model));
        }