private bool GroupExists(int id)
 {
     return(_groupsRepository.Any(id));
 }