// GET: Super
        public ActionResult Index()
        {
            var db   = new mbankEntities();
            var list = db.AspNetUsers.ToList();

            return(View(list));
        }
        public ActionResult DeleteUser(string id)
        {
            var db = new mbankEntities();;
            //find Users

            var findUser = db.AspNetUsers.Find(id);

            if (findUser != null)
            {
                //Delete User

                db.AspNetUsers.Remove(findUser);
                db.SaveChanges();
                return(Json(new { value = 200, message = "User Deleted" }, JsonRequestBehavior.AllowGet));
            }
            return(Json(new { value = 0, message = "Something Went wrong" }, JsonRequestBehavior.AllowGet));
        }
Exemple #3
0
 public CryptoAccountType()
 {
     context = new mbankEntities();
 }
 public CryptoTransaction()
 {
     context = new mbankEntities();
 }
 public void inject()
 {
     userId        = User.Identity.GetUserId();
     accountNumber = new Services.Account().getAccountNumber(userId);
     _context      = new mbankEntities();
 }
 public CryptoWithDrawRequest()
 {
     context = new mbankEntities();
 }
Exemple #7
0
 public AccountVerifications()
 {
     context = new mbankEntities();
 }
Exemple #8
0
 public Crpto_Currency()
 {
     context = new mbankEntities();
 }
Exemple #9
0
 public CryptoActivities()
 {
     context = new mbankEntities();
 }
Exemple #10
0
 public CrptoVerification()
 {
     context = new mbankEntities();
 }