public IActionResult Index() { if (HttpContext.Session.GetString("Name") == null) { return(RedirectToAction("Login", "Admin")); } ViewModel mymodel = new ViewModel(); mymodel.Personels = personelService.GetAll().Data; return(View(mymodel)); }
public IActionResult Personeller() { AdminPersonelModel personelModel = new AdminPersonelModel { _personels = _PersonelService.GetAll() }; return(View(personelModel)); }
private void FrmMain_Load(object sender, EventArgs e) { var personelcount = _personelService.GetAll().Count(); if (personelcount == 0) { _frmRegister.Show(); this.Hide(); } else { _frmLogin.Show(); this.Hide(); } }
public IActionResult Get() { var personels = service.GetAll().Data; return(Ok(personels)); }
public void Personel() { comPersonelAd.DataSource = _personelService.GetAll(); comPersonelAd.DisplayMember = "Ad"; comPersonelAd.ValueMember = "PersonelId"; }
public void Listele() { gridControl1.DataSource = _personelService.GetAll(); }