public static Role CreateRole(SiteDB db, string RoleName) { Role role = new Role(); role.RoleName = RoleName; db.Roles.Add(role); db.SaveChanges(); return role; }
// POST: api/Role public void Post(Role role) { //roleRepository.Add(role); }