コード例 #1
0
        public IActionResult Get(int id)
        {
            var userAccountManager = new UserAccountManager();
            var userAccount        = userAccountManager.GetById(id);

            return(Ok(userAccount));
        }
コード例 #2
0
        //Update Database

        public ActionResult Edit(int id)
        {
            var userAccount = new UserAcount();

            if (id > 0)
            {
                userAccount = _userAccountManager.GetById(id);

                var model = Mapper.Map <UserAccountEntryVm>(userAccount);

                return(View(model));
            }

            return(View());
        }