Beispiel #1
0
 public bool AddRole(BasRole model)
 {
     try
     {
         int count = DataBase.ExecuteNonQuery("");
         return count > -1 ? true : false;
     }
     catch
     {
         return false;
     }
 }
Beispiel #2
0
        public bool UpdateRole(BasRole model)
        {
            bool blFlag = false;
            int num;

            try
            {
                num = DataBase.ExecuteNonQuery("");
            }
            catch (Exception exception)
            {
                throw exception;
            }
            blFlag = (num > 0 ? true : false);
            return blFlag;
        }
Beispiel #3
0
 public bool AddRole(BasRole model)
 {
     return dal.AddRole(model);
 }
Beispiel #4
0
        /// <summary>
        /// 得到一个实体内容
        /// </summary>
        public BasRole DetailRole(string id)
        {
            string strSql = "select * from bas_role where  id = " + id;
            BasRole model = new BasRole();
            DataRow dr = DataBase.ExecuteDataRow(strSql);

            return model;
        }
Beispiel #5
0
 public bool UpdateRole(BasRole model)
 {
     return dal.UpdateRole(model);
 }