コード例 #1
0
 public SinavListeWrapperModel(List<Sinav> sinav, List<SinavOturum> sinavoturum, Setting ayar, List<SinavOturum> sinavoturumbasvuru, List<SinavOturum> sinavoturumgorevli)
 {
     this.sinav = sinav;
     this.sinavoturum = sinavoturum;
     this.ayar = ayar;
     this.sinavoturumbasvuru = sinavoturumbasvuru;
     this.sinavoturumgorevli = sinavoturumgorevli;
 }
コード例 #2
0
 public SinavGorevlendirmeWrapperModel(List<Teacher> ogretmen, List<School> okul, SinavOturum oturum, Setting setting, List<SinavOturumOkullari> snvOtrOkl)
 {
     this.ogretmen = ogretmen;
     this.okul = okul;
     this.oturum = oturum;
     this.setting = setting;
     this.snvOtrOkl = snvOtrOkl;
 }
コード例 #3
0
        public static object UpdateKurumAdi(Setting newsettings)
        {
            using (SGContext db = new SGContext())
            {
                try
                {
                    var settings = db.Setting.First();

                    settings.KurumAdi = newsettings.KurumAdi;
                    db.SaveChanges();

                    result = new Result(SystemRess.Messages.basarili_kayit.ToString(), SystemRess.Messages.basarili_durum.ToString());
                    return result;

                }
                catch (Exception)
                {
                    result = new Result(SystemRess.Messages.hatali_kayit.ToString(), SystemRess.Messages.hatali_durum.ToString());
                    return result;
                }
            }
        }
コード例 #4
0
        public static Result UpdateSettings(Setting newsettings)
        {
            using (SGContext db = new SGContext())
            {
                try
                {
                    var settings = db.Setting.First();

                    settings.SalonPersonelSayisi = newsettings.SalonPersonelSayisi;
                    settings.GenelBasvuru = newsettings.GenelBasvuru;
                    db.SaveChanges();

                    result = new Result(SystemRess.Messages.basarili_kayit.ToString(), SystemRess.Messages.basarili_durum.ToString());
                    return result;

                }
                catch (Exception)
                {
                    result = new Result(SystemRess.Messages.hatali_kayit.ToString(), SystemRess.Messages.hatali_durum.ToString());
                    return result;
                }
            }
        }
コード例 #5
0
        public ActionResult UpdateSettings(Setting settings)
        {
            TempData["EventResult"] = SettingManager.UpdateSettings(settings);

            return RedirectToAction("Index");
        }
コード例 #6
0
        public ActionResult SiralamaGuncelle(Setting settings)
        {
            TempData["EventResult"] = SettingManager.UpdateSiralama(settings);

            return RedirectToAction("Index");
        }
コード例 #7
0
        public ActionResult KurumGuncelle(Setting settings)
        {
            TempData["EventResult"] = SettingManager.UpdateKurumAdi(settings);

            return RedirectToAction("Index");
        }