// GET: Home
        public ActionResult Index()
        {
            List <rOzellikler> lst = OzelliklerDAL.Listele();

            if (lst != null)
            {
                return(View(lst));
            }

            return(View());
        }
Beispiel #2
0
 public static bool DetayGuncelle(Detay d)
 {
     try
     {
         return(OzelliklerDAL.DetayGuncelle(d));
     }
     catch (Exception)
     {
         throw;
     }
 }
Beispiel #3
0
 public static Detay DetayGetir()
 {
     try
     {
         return(OzelliklerDAL.DetayGetir());
     }
     catch (Exception)
     {
         throw;
     }
 }
Beispiel #4
0
 public static Ozellikler Getir(int Id)
 {
     try
     {
         return(OzelliklerDAL.Getir(Id));
     }
     catch (Exception)
     {
         throw;
     }
 }
Beispiel #5
0
 public static List <rOzellikler> Listele()
 {
     try
     {
         return(OzelliklerDAL.Listele());
     }
     catch (Exception)
     {
         throw;
     }
 }
Beispiel #6
0
 public static bool Guncelle(Ozellikler o)
 {
     try
     {
         return(OzelliklerDAL.Guncelle(o));
     }
     catch (Exception)
     {
         throw;
     }
 }
Beispiel #7
0
 public static bool Sil(int Id)
 {
     try
     {
         return(OzelliklerDAL.Sil(Id));
     }
     catch (Exception)
     {
         throw;
     }
 }
Beispiel #8
0
        public static bool Ekle(pOzellikler ozl)
        {
            try
            {
                Ozellikler o = new Ozellikler();
                o.Marka     = ozl.Marka;
                o.Model     = ozl.Model;
                o.Yakıt     = ozl.Yakıt;
                o.Vıtes     = ozl.Vıtes;
                o.KasaTıpı  = ozl.KasaTıpı;
                o.Yılı      = ozl.Yılı;
                o.Beygir    = ozl.Beygir;
                o.Tork      = ozl.Tork;
                o.Hacim     = ozl.Hacim;
                o.Cekısturu = ozl.Cekısturu;
                o.Renk      = ozl.Renk;

                return(OzelliklerDAL.Ekle(o));
            }
            catch (Exception)
            {
                throw;
            }
        }
Beispiel #9
0
        // GET: Home
        public ActionResult Index()
        {
            List <rOzellikler> lst = OzelliklerDAL.Listele();

            return(View(lst));
        }