Example #1
0
        public async Task <IActionResult> Get(int unitId)
        {
            var unit = await _db.GetUnitAsync(unitId);

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

            return(Ok(unit));
        }