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); }