public async Task <IActionResult> Get(int id) { var locationTypeDTO = await _contextManager.GetLocationTypeByIdAsync(id); if (locationTypeDTO == null) { return(NotFound("No locationType from given id found.")); } return(Ok(locationTypeDTO.ToLocationTypeV1DTO())); }