Exemple #1
0
 public MenuController(IMenuRepositorycs menurepository, IMapper mapper)
 {
     _menurepository = menurepository ??
                       throw new ArgumentNullException(nameof(menurepository));
     this._mapper = mapper ??
                    throw new ArgumentNullException(nameof(mapper));
 }
Exemple #2
0
 private void ResetRepositories()
 {
     _categoryRepository     = null;
     _menuRepository         = null;
     _menuGroupRepository    = null;
     _orderRepository        = null;
     _orderDetailsRepository = null;
     _productRepository      = null;
     _slidetRepository       = null;
     _venderRepository       = null;
 }