Exemple #1
0
 public async Task <int> UpdateAsync(SeminarDTO entity)
 {
     return(await seminarRepository.UpdateAsync(entity));
 }
Exemple #2
0
 public async Task <int> DeleteAsync(SeminarDTO entity)
 {
     return(await genericRepository.DeleteAsync(mapper.Map <Seminar>(entity)));
 }
Exemple #3
0
        public async Task <int> UpdateAsync(SeminarDTO entity)
        {
            Expression <Func <Seminar, Guid> > test = x => entity.Id;

            return(await genericRepository.UpdateAsync(mapper.Map <Seminar>(entity)));
        }
Exemple #4
0
 public async Task <int> AddAsync(SeminarDTO entity)
 {
     entity.Id = Guid.NewGuid();
     return(await genericRepository.AddAsync(mapper.Map <Seminar>(entity)));
 }