public RestaurantsBsn() { restaurantsData = new RestaurantsEFData(); if (Source.DataStorage == 1) { restaurantsData = new RestaurantsJSON(); } }
private HttpResponseMessage SendGetRestaurantsRequest(int townId, IRestaurantsData data) { var model = new SearchRestaurantsBindingModel { TownId = townId }; var controller = new RestaurantsController(data); this.SetupController(controller); var response = controller.GetRestaurants(model) .ExecuteAsync(CancellationToken.None).Result; return response; }
private HttpResponseMessage SendGetRestaurantsRequest(int townId, IRestaurantsData data) { var model = new SearchRestaurantsBindingModel { TownId = townId }; var controller = new RestaurantsController(data); this.SetupController(controller); var response = controller.GetRestaurants(model) .ExecuteAsync(CancellationToken.None).Result; return(response); }
public BaseApiController(IRestaurantsData data) { this.Data = data; }
public BaseApiController(IRestaurantsData data) { this.Data = data; }
public RestaurantsController(IRestaurantsData data) : base(data) { }
public RestaurantsController(IRestaurantsData data, IUserIdProvider provider) : base(data, provider) { }
public MealsController(IRestaurantsData data) : base(data) { }
public RestaurantsController(RestaurantsData data) { this.db = data; }
public OrdersController(IRestaurantsData data) : base(data) { }
public RestaurantsController(RestaurantsData data) { this.db = data; }
public EditModel(IRestaurantsData restaurantData, IHtmlHelper htmlHelper) { this.restaurantData = restaurantData; this.htmlHelper = htmlHelper; }
public DetailsModel(IRestaurantsData restaurantsData) { this.restaurantsData = restaurantsData; }
public ListModel(IRestaurantsData restaurantsData) { this.restaurantsData = restaurantsData; }
public BaseApiController(IRestaurantsData data, IUserIdProvider provider) { this.Data = data; this.UserIdProvider = provider; }