public IHttpActionResult Get(int accountId) { var account = _accountService.GetAccountUserById(accountId); if (account == null || account.Deleted) { return(NotFound()); } var model = account.ToModel(); model.IsAdministrator = account.IsAdmin(); //activity log _accountUserActivityService.InsertActivity("GetAccountInfo", "获取 名为 {0} 的用户信息", account.UserName); return(Ok(model)); }