public async Task <ActionResult <List <StoreBrandResponse> > > GetStoreByBrandId()
        {
            try
            {
                int brandId = Convert.ToInt32(User.FindFirst("BrandId")?.Value);
                var rs      = await _storesService.GetStoreByBrandId(brandId);

                return(Ok(rs));
            }
            catch (Exception e)
            {
                throw new CrudException(HttpStatusCode.BadRequest, "Get Store Error!!!", e.InnerException?.Message);
            }
        }
Beispiel #2
0
        public async Task <ActionResult <StoreBrandResponse> > GetStoreByBrandId(int id)
        {
            var rs = await _storesService.GetStoreByBrandId(id);

            return(Ok(rs));
        }