public DrinksController(DrinksService dr)
 {
     _dr = dr;
 }
Ejemplo n.º 2
0
 public DrinksController(DrinksService ds)
 {
     _ds = ds;
 }
Ejemplo n.º 3
0
        public DrinksViewModel()
        {
            var drinksservices = new DrinksService();

            DrinksList = drinksservices.GetDrinks();
        }
 public DrinksController(DrinksService service)
 {
     _service = service;
 }
Ejemplo n.º 5
0
 public HomeController(MealsService mealsService, DrinksService drinksService, Configuration configuration)
 {
     _mealsService  = mealsService ?? throw new ArgumentNullException(nameof(mealsService));
     _drinksService = drinksService ?? throw new ArgumentNullException(nameof(drinksService));
     _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
 }