public override void CreateRole(string roleName)
        {
            Role newRole = new Role()
            {
                Name = roleName
            };
            LaserExpertiseContext db = new LaserExpertiseContext();

            db.Roles.Add(newRole);
            db.SaveChanges();
        }
Пример #2
0
 public void Save()
 {
     db.SaveChanges();
 }