public ActionResult Create(Budget budget)
        {
            if (ModelState.IsValid)
            {
                db.Budgets.Add(budget);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(budget);
        }
 public bool AddBudget(Budget newBudget)
 {
     try
     {
         _ctx.Budgets.Add(newBudget);
         return true;
     }
     catch (Exception)
     {
         //TODO log this error
         return false;
     }
 }
 public ActionResult Edit(Budget budget)
 {
     if (ModelState.IsValid)
     {
         db.Entry(budget).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(budget);
 }
 public bool RemoveBudget(Budget budget)
 {
     _ctx.Budgets.Remove(budget);
     return true;
 }