Example #1
0
        public bool Add(T entity)
        {
            bool Sonuc = false;

            try
            {
                _dbSet.Add(entity);
                Sonuc = Convert.ToBoolean(_biletContext.SaveChanges());
            }
            catch (Exception ex)
            {
                string hata = ex.Message;
                //throw new Exception("Kayıt yapılamadı!");
            }
            return(Sonuc);
        }