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

            db.choroba_view.Remove(choroba_view);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "id_uzytkownika,nazwisko,nazwa_choroby,diagnoza,objawy,id_pacjent")] choroba_view choroba_view)
 {
     if (ModelState.IsValid)
     {
         db.Entry(choroba_view).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(choroba_view));
 }
        public ActionResult Create([Bind(Include = "id_uzytkownika,nazwisko,nazwa_choroby,diagnoza,objawy,id_pacjent")] choroba_view choroba_view)
        {
            if (ModelState.IsValid)
            {
                db.choroba_view.Add(choroba_view);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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