This forum is not used anymore. Please ask new questions to Stack Overflow: ... ort=newest (use aspnetboilerplate tag).
By juslwk
#19264 My delete entity is not working, any possible reasons? I have tried Delete And DeleteAsync methods as well. This is the way I test it.

Code: Select allpublic void DeleteFile(EntityDto input)
            var fileToBeDeleted = _fileRepository.Get(input.Id);
            var deletedFile = _fileRepository.Get(input.Id);

I put a break point after var deletedFile, and check their values, but both fileToBeDeleted & deletedFile are equal in value.
Am I doing something wrong? Thank you
There are no error messages or exceptions occurring.