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); }
public SearchProfileManager(SearchProfileRepository profileRepository) { _profileRepository = profileRepository; }