public ActionResult MenuAdd() { if (!string.IsNullOrEmpty(GetQuerystring("Module_ID"))) { int menuid = int.Parse(GetQuerystring("Module_ID")); if (new ICPOS.EntityFramwork.BLL.Module().Exists(menuid)) { string sql = "select * from [ICPOS].[dbo].[Module] S where Module_ID='" + menuid + "'"; ICPOS.EntityFramwork.Model.Module MModule = DbHelperSQL.GetList <ICPOS.EntityFramwork.Model.Module>(sql)[0]; ViewBag.MenuMod = MModule; } } return(View()); }
/// <summary> /// 更新一条数据 /// </summary> public bool Update(ICPOS.EntityFramwork.Model.Module model) { return(dal.Update(model)); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(ICPOS.EntityFramwork.Model.Module model) { return(dal.Add(model)); }