public void UpdateRole(Role role)
 {
     roleRepository.UpdateRole(role);
 }
 public void DeleteRole(Role role)
 {
     roleRepository.DeleteRole(role);
     uow.Commit();
 }
 public void AddRole(Role role)
 {
     roleRepository.AddRole(role);
     uow.Commit();
 }
 public void UpdateRole(Role role)
 {
     context.Entry(role).State = EntityState.Modified;
 }
 public void DeleteRole(Role role)
 {
     context.Set<Role>().Remove(role);
 }
 public void AddRole(Role role)
 {
     context.Set<Role>().Add(role);
 }