public ActionResult Index() { var reader = _readerService.GetAll(); var readerVm = _mapper.Map <List <ReaderViewModel> >(reader); var data = new GetReadersViewModel { Readers = readerVm }; return(View(data)); }
public IEnumerable <Reader> GetAllReaders() { Logger.Log.Info("Getting All Readers"); return(_readerService.GetAll()); }
private void LoadReaders() { dgvOkunanKitaplar.DataSource = _readerService.GetAll(); }
public ActionResult <IEnumerable <ReaderModel> > Get() { var readers = _readerService.GetAll(); return(readers.ToList()); }
public IEnumerable <Reader> Get() { return(_readerService.GetAll()); }