1
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
var categoryObject = ValueObject<CategoryEntity>.Create(request.CategoryId, category);
|
||||
|
||||
var article = await _db.Articles.FindAsync(request.Id);
|
||||
if (article == null)
|
||||
if (article == null|| article.Status == ArticleStatusEnum.Deleted)
|
||||
{
|
||||
throw new ArticleNotExistsException(request.Id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user