public async Task <IActionResult> ReadAmortisationCalculatorElementViewAsync(long elementId, [FromQuery] long pageId) { PageContext context = new PageContext { PageId = pageId }; IElementView <AmortisationCalculatorElementSettings, object> view = await _amortisationCalculatorElementService.ReadElementViewAsync(TenantId, elementId, context); if (view == null) { return(NotFound()); } return(Ok(view)); }