public Result <int> GetResult(AracKiralamaRezervasyonEntities db)
        {
            Result <int> result = new Result <int>();
            int          sonuc  = db.SaveChanges();

            if (sonuc > 0)
            {
                result.UserMassage   = "Basarili";
                result.ısSuccesssed  = true;
                result.ProcessResult = sonuc;
            }
            else
            {
                result.UserMassage   = "basarisiz";
                result.ısSuccesssed  = false;
                result.ProcessResult = sonuc;
            }
            return(result);
        }
Exemplo n.º 2
0
 public bool KullaniciInsert(kullanicilar item)
 {
     db.kullanicilars.Add(item);
     db.SaveChanges();
     return(true);
 }
 public bool AracInsert(araclar item)
 {
     db.araclars.Add(item);
     db.SaveChanges();
     return(true);
 }