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));
        }
예제 #2
0
        public IActionResult Personeller()
        {
            AdminPersonelModel personelModel = new AdminPersonelModel
            {
                _personels = _PersonelService.GetAll()
            };

            return(View(personelModel));
        }
예제 #3
0
        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";
 }
예제 #6
0
 public void Listele()
 {
     gridControl1.DataSource = _personelService.GetAll();
 }