Exemplo n.º 1
0
        //----------------------------------------------------------------------------------------
        //Delete



        public ActionResult Delete(int id = 0)
        {
            SamochodyPDEntities db        = new SamochodyPDEntities();
            Sprzedane           sprzedane = db.Sprzedane.Find(id);

            sprzedane.sprzedane1 = false;
            db.SaveChanges();
            return(RedirectToAction("SamochodyLista"));
        }
Exemplo n.º 2
0
 public override string ToString()
 {
     //return "Imie: " + Imie +"\t Nazwisko: " + Nazwisko;
     return(Imie + " | " + Nazwisko + " | K:" + Kupione.ToString() + " | S:" + Sprzedane.ToString() + " | " + Preferencje);
 }