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); }
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); }
public bool Destroy(object RoleId) { return(AspnetRole.Destroy(RoleId) == 1); }
public bool Delete(object RoleId) { return(AspnetRole.Delete(RoleId) == 1); }