コード例 #1
0
        public ActionResult KyHopDong(string id)
        {
            SanphamcanmuaModel sp = new SanphamcanmuaModel();

            sp.DeleteSPCM(Convert.ToInt32(id));
            return(TimDS(null, null, null, null));
        }
コード例 #2
0
 public ActionResult MultibleDel(List <string> lstdel)
 {
     foreach (var item in lstdel)
     {
         SanphamcanmuaModel ncc = new SanphamcanmuaModel();
         ncc.DeleteSPCM(Convert.ToInt32(item));
     }
     return(TimSPCM(null, null));
 }
コード例 #3
0
        public ActionResult DeleteSPCM(int id)
        {
            SanphamcanmuaModel ncc = new SanphamcanmuaModel();

            if (ncc.getSanphamcanmua(id) == null)
            {
                return(HttpNotFound());
            }
            ncc.DeleteSPCM(id);
            return(TimSPCM(null, null));
        }