Esempio n. 1
0
        public async Task Delete(string guid)
        {
            var qa = _qpRepository.Get(o => o.Guid == guid).First();

            _qpRepository.Delete(qa);
            await _mongo.DeleteAsync <Reply>(o => o.PostGuid == guid);

            await _mongo.DeleteFileByPostGuidAsync(guid);

            _qpRepository.SaveChanges();
        }