Esempio n. 1
0
        public ActionResult ThemThongSoKT(List <ThongSoKyThuat> lstkt)
        {
            if (lstkt.Count == 0)
            {
                return(RedirectToAction("SanPham"));
            }
            var spm = new SanPhamModel();

            foreach (var item in lstkt)
            {
                if (!string.IsNullOrEmpty(item.ThuocTinh))
                {
                    spm.ThemTSKT(item);
                }
            }
            return(RedirectToAction("SanPham"));
        }