Exemplo n.º 1
0
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var industry = await _industryServices.GetIndustry(id.Value);

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

            return(View(industry));
        }
        public async Task <IActionResult> Get(int id)
        {
            var industry = await _industriesServices.GetIndustry(id);

            return(Ok(industry));
        }