Beispiel #1
0
 public static AracKiralamaRezervasyonEntities GetConnection()
 {
     if (db == null)
     {
         db = new AracKiralamaRezervasyonEntities();
     }
     return(db);
 }
        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);
        }