示例#1
0
        public void Insert(string RoleName, string Description)
        {
            var item = new LRole();

            item.RoleName = RoleName;

            item.Description = Description;


            item.Save(UserName);
        }
示例#2
0
        public void Update(int RoleId, string RoleName, string Description)
        {
            var item = new LRole();

            item.MarkOld();
            item.IsLoaded = true;

            item.RoleId = RoleId;

            item.RoleName = RoleName;

            item.Description = Description;

            item.Save(UserName);
        }
示例#3
0
 public bool Destroy(object RoleId)
 {
     return(LRole.Destroy(RoleId) == 1);
 }
示例#4
0
 public bool Delete(object RoleId)
 {
     return(LRole.Delete(RoleId) == 1);
 }