public IActionResult Get(int id)
        {
            var userAccountManager = new UserAccountManager();
            var userAccount        = userAccountManager.GetById(id);

            return(Ok(userAccount));
        }
Exemplo n.º 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());
        }