コード例 #1
0
        public AdviserView getAdviserAccountNumber()
        {
            var         userid  = User.Identity.GetUserId();
            Adviser     adviser = edisRepo.GetAdviserForClient(userid);
            AdviserView view    = new AdviserView {
                accountNumber = adviser.AdviserNumber,  //id==> number
                name          = adviser.FirstName + " " + adviser.LastName
            };

            return(view);
            //return clientRepo.GetAdviserAccountNumberForClient(userid);
        }