public ActionResult GetMoney(GetMoneyModel model) { var user = userService.GetUsersByUserName(User.Identity.Name); var billOfUser = billService.GetBillOnUser(user, model.IBank); if (billOfUser == null) { model.IsValetIBank = true; return(View(model)); } billService.GetMoneyInYourBill(billOfUser, model.Money); return(RedirectToAction("Index", "Home")); }
public ActionResult GetMoney(string pictureName, string leva) { if (!this.User.Identity.IsAuthenticated) { return(RedirectToAction("Login", "Account")); } var pathOfPicture = "~/Content/images/" + pictureName + ".jpg"; var model = new GetMoneyModel() { IBank = "", Money = leva, PicturePath = pathOfPicture, IsValetIBank = false }; return(View(model)); }