Advertisement
Guest User

categoryRepository

a guest
Jan 23rd, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. public class CategoryRepository : BaseRepository, ICategoryRepository
  2.     {
  3.         public CategoryRepository(AppDbContext context) : base(context)
  4.         {
  5.         }
  6.  
  7.         public async Task<IEnumerable<Category>> ListAsync()
  8.         {
  9.             return await _context.Categories.ToListAsync();
  10.         }
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement