public async Task <IActionResult> GetProperty([FromRoute] int id) { var property = await inventoryProvider.GetProperty(id); if (property == null) { return(NotFound("Not found")); } var propertyViewModel = mapper.Map <PropertyViewModel>(property); return(Ok(propertyViewModel)); }