Exemplo n.º 1
0
 public ActionResult SubmitForm(TWindowAreaModel model)
 {
     if (model.id == -1)
     {
         this.bll.Insert(model);
     }
     else
     {
         this.bll.Update(model);
     }
     return(Content("操作成功!"));
 }
Exemplo n.º 2
0
        public ActionResult Form(int id)
        {
            var model = this.bll.GetModel(id);

            if (model == null)
            {
                model = new TWindowAreaModel()
                {
                    id = -1
                }
            }
            ;
            return(View(model));
        }
Exemplo n.º 3
0
 public int Delete(TWindowAreaModel model)
 {
     return(this.dal.Delete(model));
 }
Exemplo n.º 4
0
 public int Update(TWindowAreaModel model)
 {
     return(this.dal.Update(model));
 }
Exemplo n.º 5
0
 public TWindowAreaModel Insert(TWindowAreaModel model)
 {
     return(this.dal.Insert(model));
 }
Exemplo n.º 6
0
 public TWindowAreaModel Insert(TWindowAreaModel model)
 {
     return(db.Insert(model));
 }