Ejemplo n.º 1
0
        private void UpdateMoney(String description)
        {
            user = LoginForm.user;
            MoneyList moneylist = moneyListManager.LoadSelectedMoneyList(description);

            loginManager.updateCashPerUser(user, moneylist.Amount);
        }
Ejemplo n.º 2
0
 public ActionResult Index([Bind(Include = "Category, Money, Date, Description")] MoneyList moneyList)
 {
     if (ModelState.IsValid)
     {
         var skillTreeHomeworkEntities = new SkillTreeHomeworkEntities1();
         skillTreeHomeworkEntities.AccountBooks.Add(new AccountBook()
         {
             Id         = Guid.NewGuid(),
             Categoryyy = int.Parse(moneyList.Category),
             Amounttt   = (int)moneyList.Money,
             Dateee     = moneyList.Date,
             Remarkkk   = moneyList.Description
         });
         skillTreeHomeworkEntities.SaveChanges();
     }
     return(RedirectToAction("Index"));
 }