コード例 #1
0
        public ActionResult ChitietAuction(SanPhamCanMua a)
        {
            var sp = new SanPhamCanMuaModel();

            a.SanPham = sp.getSP(a.SanPhamId);
            return(View(a));
        }
コード例 #2
0
 internal string ThemSPCM(SanPhamCanMua loai)
 {
     loai.Ngaydang = DateTime.Today;
     db.Sanphamcanmuas.Add(loai);
     db.SaveChanges();
     return(null);
 }
コード例 #3
0
        private SanPhamCanMua GetData(SanPhamCanMuaAdd loai)
        {
            var sp = new SanPhamCanMua();

            sp.SanPhamId   = loai.MaSP;
            sp.Ngayketthuc = loai.Ngayketthuc;
            sp.Mota        = loai.Mota;
            sp.Soluong     = loai.Soluong;
            return(sp);
        }