public async Task <NewspaperSubCategory> Create(NewspaperSubCategory NewspaperSubCategory) { await _dbContext.Set <NewspaperSubCategory>().AddAsync(NewspaperSubCategory); await _dbContext.SaveChangesAsync(); return(NewspaperSubCategory); }
public void Delete(NewspaperSubCategory NewspaperSubCategory) { _dbContext.Remove(NewspaperSubCategory); _dbContext.SaveChanges(); }