Esempio n. 1
0
        public ActionResult DeleteUser(string userId, string userName)
        {
            log.Info($"Deleting user with userNAme: {userName}");

            RankingController.DeleteUser(userId);
            PayedController.RemoveUser(userId);
            EstimatedResultController.RemoveUser(userId);

            var user = HttpContext.GetOwinContext()
                       .GetUserManager <Identity.ApplicationUserManager>()
                       .Users.First(x => x.Id.Equals(userId));

            HttpContext.GetOwinContext()
            .GetUserManager <Identity.ApplicationUserManager>()
            .Delete(user);

            return(RedirectToAction("Index", "Admin"));
        }
Esempio n. 2
0
        public ActionResult SubmitPayment(string userId)
        {
            PayedController.AddPayment(userId);

            return(RedirectToAction("SetPayment", "Admin"));
        }