Example #1
0
        public async Task <IndexDTO> GetCatalog(string bakeryType = "", string searchString = "")
        {
            var indexDTO = new IndexDTO()
            {
                TypeSearch     = bakeryType,
                SearchString   = searchString,
                AllBakeryTypes = await _repository.GetAllBakeryTypes(),
                Bakeries       = await _repository.GetBakeries(bakeryType, searchString)
            };

            return(indexDTO);
        }
 public ActionResult <List <Bakery> > GetBakeries(int hour, double latitude, double longitude)
 {
     return(_ibakery.GetBakeries(hour, latitude, longitude));
 }