Пример #1
0
        public SearchProfileModel GetSearchProfile(Guid id, Guid UserId)
        {
            SearchProfileModel model = new SearchProfileRepository().GetSearchProfile(id);

            if (model == null)
            {
                return(null);
            }

            return(model.Utilizador.Id == UserId ? model : null);
        }
Пример #2
0
 public SearchProfileManager(SearchProfileRepository profileRepository)
 {
     _profileRepository = profileRepository;
 }