public ActionResult Add(ClientProduct p, HttpPostedFile imgLg, HttpPostedFile imgSm) { //khi hai ô này rỗng if (p.TinyDes == null) { p.TinyDes = string.Empty; } if (p.FullDesRaw == null) { p.FullDesRaw = string.Empty; } p.FullDes = p.FullDesRaw; p.View = 0; //lưu thông tin p = CSDLQLBH.InsertProduct(p); Ulti.SaveProductImgs((int)p.ProID, Server.MapPath("~"), imgLg, imgSm); return(RedirectToAction("Index")); }