Beispiel #1
0
        public async Task <ActionResult <Uom> > Get(long id)
        {
            var uom = await _uomService.Get(id);

            if (uom == null)
            {
                return(NotFound());
            }

            return(Ok(uom));
        }
        public async Task <ActionResult <Category> > Get(long id)
        {
            var category = await _categoryService.Get(id);

            if (category == null)
            {
                return(NotFound());
            }

            return(Ok(category));
        }
Beispiel #3
0
        public async Task <ActionResult <Product> > Get(long id)
        {
            var product = await _productService.Get(id);

            if (product == null)
            {
                return(NotFound());
            }

            return(Ok(product));
        }
Beispiel #4
0
        public async Task <ActionResult <Type> > Get(long id)
        {
            var data = await _typeService.Get(id);

            if (data == null)
            {
                return(NotFound());
            }

            return(Ok(data));
        }
Beispiel #5
0
        public async Task <ActionResult <Payment> > Get(long id)
        {
            var parentCategory = await _parentCategoryService.Get(id);

            if (parentCategory == null)
            {
                return(NotFound());
            }

            return(Ok(parentCategory));
        }
Beispiel #6
0
        public async Task <ActionResult <Seller> > Get(long id)
        {
            var seller = await _sellerService.Get(id);

            if (seller == null)
            {
                return(NotFound());
            }

            return(Ok(seller));
        }