public IActionResult Get(long id) { var account = _repo.GetAccountById(id); if (account != null) { var accountVM = _vmFactory.CreateAccountVM(account, Url); return(Ok(accountVM)); } else { return(NotFound()); } }