public async Task <IActionResult> GetView(string id) { try { IActionResult actionResult = await base.GetEntity <EmailViewModel>(id); OkObjectResult okResult = actionResult as OkObjectResult; if (okResult != null) { EmailViewModel view = okResult.Value as EmailViewModel; view = _manager.GetEmailView(view); } return(actionResult); } catch (Exception ex) { return(ex.GetActionResult()); } }