public ActionResult DeleteConfirmed(int id)
        {
            Budjet budjet = db.Budjet.Find(id);

            db.Budjet.Remove(budjet);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ID_Budget,Budget_Sum,Sale_Markup,Emp_Sale_Bonus")] Budjet budjet)
 {
     if (ModelState.IsValid)
     {
         db.Entry(budjet).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(budjet));
 }
        public ActionResult Create([Bind(Include = "ID_Budget,Budget_Sum,Sale_Markup,Emp_Sale_Bonus")] Budjet budjet)
        {
            if (ModelState.IsValid)
            {
                db.Budjet.Add(budjet);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(budjet));
        }
        // GET: Budjets/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Budjet budjet = db.Budjet.Find(id);

            if (budjet == null)
            {
                return(HttpNotFound());
            }
            return(View(budjet));
        }