Exemple #1
0
        public string uplunbo(int id)
        {
            lunbo models = new lunbo();

            models     = _lunbo.GetById(id);
            models.del = 0;
            _lunbo.Update(models);
            return("1");
        }
Exemple #2
0
        public ActionResult addlunbo(int?id = 0)
        {
            lunbo model = new lunbo();

            if (id != 0)
            {
                model = _lunbo.GetById((int)id);
            }
            return(View(model));
        }
Exemple #3
0
 public ActionResult addlunbo(lunbo model)
 {
     if (model.id != 0)
     {
         lunbo models = new lunbo();
         models         = _lunbo.GetById(model.id);
         models.htmlurl = model.htmlurl;
         models.imgurl  = model.imgurl;
         models.name    = model.name;
         models.type    = model.type;
         _lunbo.Update(models);
     }
     else
     {
         model.del = 1;
         _lunbo.Insert(model);
     }
     return(RedirectToAction("lunbo", "Product"));
 }
        private void 关于我们ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            lunbo jj = new lunbo();

            jj.ShowDialog();
        }