Exemplo n.º 1
0
        public void Insert(string RoleName, string Description)
        {
            LRole item = new LRole();

            item.RoleName = RoleName;

            item.Description = Description;


            item.Save(UserName);
        }
Exemplo n.º 2
0
        public void Update(int RoleId, string RoleName, string Description)
        {
            LRole item = new LRole();

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

            item.RoleId = RoleId;

            item.RoleName = RoleName;

            item.Description = Description;

            item.Save(UserName);
        }