public override void CreateRole(string roleName) { Role newRole = new Role() { Name = roleName }; LaserExpertiseContext db = new LaserExpertiseContext(); db.Roles.Add(newRole); db.SaveChanges(); }
public void Save() { db.SaveChanges(); }
public override void CreateRole(string roleName) { Role newRole = new Role() { Name = roleName }; LaserExpertiseContext db = new LaserExpertiseContext(); db.Roles.Add(newRole); db.SaveChanges(); }
public void Save() { db.SaveChanges(); }