public ActionResult SubmitForm(TWindowAreaModel model) { if (model.id == -1) { this.bll.Insert(model); } else { this.bll.Update(model); } return(Content("操作成功!")); }
public ActionResult Form(int id) { var model = this.bll.GetModel(id); if (model == null) { model = new TWindowAreaModel() { id = -1 } } ; return(View(model)); }
public int Delete(TWindowAreaModel model) { return(this.dal.Delete(model)); }
public int Update(TWindowAreaModel model) { return(this.dal.Update(model)); }
public TWindowAreaModel Insert(TWindowAreaModel model) { return(this.dal.Insert(model)); }
public TWindowAreaModel Insert(TWindowAreaModel model) { return(db.Insert(model)); }