Beispiel #1
0
 public RestaurantController(ApplicationContext db, IFileOnServer fileOnServer, IMapper mapper)
 {
     _restaurantService = new RestaurantService(db, mapper, fileOnServer);
 }
 public RestaurantFoodController(ApplicationContext db, IFileOnServer fileOnServer, IMapper mapper)
 {
     _foodService = new RestaurantFoodService(db, fileOnServer, mapper);
 }
Beispiel #3
0
 public RestaurantService(ApplicationContext db, IMapper mapper, IFileOnServer fileOnServer)
     : base(db, mapper)
 {
     _fileOnServer = fileOnServer;
 }
 public RestaurantFoodService(ApplicationContext db, IFileOnServer fileOnServer, IMapper mapper)
 {
     _fileOnServer = fileOnServer;
     _db           = db;
     _mapper       = mapper;
 }