Beispiel #1
0
        public string AddRole(AspNetRole AspNetRole)
        {
            aspNetRoleRepository.Add(AspNetRole);
            aspNetRoleRepository.SaveChanges();

            return(AspNetRole.Id);
        }
Beispiel #2
0
 public AspNetRole Create(AspNetRole objectToCreate)
 {
     repository.Add(objectToCreate);
     Save();
     return(objectToCreate);
 }