Пример #1
0
        public async Task <ActionResult> ActiveAPI(int UserId, string APIKey, bool?APIActive)
        {
            UsersViewModel viewmodel = new UsersViewModel();
            await viewmodel.ActiveAPI(Session, UserId, APIKey, APIActive);

            if (viewmodel.errorOccurred == true)
            {
                return(View(viewmodel));
            }

            return(RedirectToAction("Index", "ManageUsers"));
        }