Esempio n. 1
0
        public async Task <IActionResult> Get(string id)
        {
            var result = await _factoryService.GetAsync(id);

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

            return(Ok(result));
        }
Esempio n. 2
0
 async Task <bool> IsFactoryNotExist(string factoryId)
 => await _factoryService.GetAsync(factoryId) == null;