public async Task <IActionResult> Get(int unitId) { var unit = await _db.GetUnitAsync(unitId); if (unit == null) { return(NotFound()); } return(Ok(unit)); }
public async Task <IActionResult> Get(int unitId) { var unit = await _db.GetUnitAsync(unitId); if (unit == null) { return(NotFound()); } return(Ok(unit)); }