예제 #1
0
        public async Task <int> AddAsync(RegistrationDTO entity)
        {
            if (entity.Status)
            {
                var seminar = await seminarRepository.GetAsync(entity.SeminarId);

                seminar.ParticipantsCount++;
                await seminarRepository.UpdateAsync(seminar);
            }
            return(await registrationRepository.AddAsync(entity));
        }
예제 #2
0
 public async Task <int> UpdateAsync(SeminarDTO entity)
 {
     return(await seminarRepository.UpdateAsync(entity));
 }