Пример #1
0
 protected override Task CascadeDeleteActionAsync(Site entity)
 {
     return(Task.WhenAll(
                LeadRepository.DeleteRange(entitySet => entitySet.Where(r => r.SiteId == entity.Id)),
                ImageUrlService.RemoveAsync(entity.ImageUrl)));
 }
Пример #2
0
 protected override Task CascadeDeleteActionAsync(Expert entity)
 {
     return(Task.WhenAll(
                LeadRepository.NullifyExpertRelation(entitySet => entitySet.Where(r => r.ExpertId == entity.Id)),
                ImageUrlService.RemoveAsync(entity.PhotoUrl)));
 }
Пример #3
0
 protected override Task CascadeDeleteActionAsync(User entity)
 {
     return(ImageUrlService.RemoveAsync(entity.AvatarUrl));
 }