public async Task <ForumSubsection> AddAsync(ForumSubsection entity)
        {
            var addedEntity = await _context.ForumSubsections.AddAsync(entity);

            await _context.SaveChangesAsync();

            return(addedEntity.Entity);
        }
 public async Task UpdateAsync(ForumSubsection entity)
 {
     _context.ForumSubsections.Attach(entity);
     _context.Entry(entity).State = EntityState.Modified;
     await _context.SaveChangesAsync();
 }
 public async Task DeleteAsync(ForumSubsection entity)
 {
     _context.ForumSubsections.Remove(entity);
     await _context.SaveChangesAsync();
 }