Example #1
0
        protected void KitapAraIsim_OnClick(object sender, EventArgs e)
        {
            if (KitapAdiTb.Text.Length < 4 && ISBNTb.Text.Length < 4)
            {
                return;
            }
            var response = KitapService.KitaplariGetirTablo(new KitapAraModel {
                KitapAdi = KitapAdiTb.Text, ISBN = ISBNTb.Text
            });

            if (response.Tamamlandi)
            {
                kitapRepeater.DataSource = ((PageModel)response.Data).TabloData;
                kitapRepeater.DataBind();
            }
        }
Example #2
0
 public KitaplarController(KitapService kitapService)
 {
     _kitapService = kitapService;
 }