Example #1
0
        public IActionResult Hello(HelloVM vm)
        {
            var idk  = User.Claims.First(x => x.Type == "idk").Value;
            var user = _userRepo.Get(idk);

            user.Name = vm.User.Name;
            user.UpdateCount++;

            _userRepo.Update(user);

            return(Hello());
        }
Example #2
0
        public IActionResult Hello()
        {
            var idk  = User.Claims.First(x => x.Type == "idk").Value;
            var user = _userRepo.Get(idk) as User;

            var vm = new HelloVM
            {
                User = user
            };

            return(View(vm));
        }