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)); }
public ActionResult DetalleArticulo() { DetalleArticuloModels model = new DetalleArticuloModels(); return(PartialView(model)); }