Exemplo n.º 1
0
 public async Task <bool> CheckIfExperianceAlreadyExist(string userId, ExperianceType type)
 {
     return(await _experiancesRepository.CheckIfExperianceAlreadyExist(userId, type));
 }
Exemplo n.º 2
0
        public async Task <bool> CheckIfExperianceAlreadyExist(string userId, ExperianceType type)
        {
            var result = await DbSet.AnyAsync(x => x.UserId == userId && x.ExperianceType == type);

            return(result);
        }