Exemple #1
0
        public void Insert(Guid ApplicationId, Guid RoleId, string RoleName, string LoweredRoleName, string Description)
        {
            AspnetRole item = new AspnetRole();

            item.ApplicationId = ApplicationId;

            item.RoleId = RoleId;

            item.RoleName = RoleName;

            item.LoweredRoleName = LoweredRoleName;

            item.Description = Description;


            item.Save(UserName);
        }
Exemple #2
0
        public void Update(Guid ApplicationId, Guid RoleId, string RoleName, string LoweredRoleName, string Description)
        {
            AspnetRole item = new AspnetRole();

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

            item.ApplicationId = ApplicationId;

            item.RoleId = RoleId;

            item.RoleName = RoleName;

            item.LoweredRoleName = LoweredRoleName;

            item.Description = Description;

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