Пример #1
0
        public ActionResult Index()
        {
            var reader   = _readerService.GetAll();
            var readerVm = _mapper.Map <List <ReaderViewModel> >(reader);

            var data = new GetReadersViewModel
            {
                Readers = readerVm
            };

            return(View(data));
        }
Пример #2
0
        public IEnumerable <Reader> GetAllReaders()
        {
            Logger.Log.Info("Getting All Readers");

            return(_readerService.GetAll());
        }
Пример #3
0
 private void LoadReaders()
 {
     dgvOkunanKitaplar.DataSource = _readerService.GetAll();
 }
Пример #4
0
        public ActionResult <IEnumerable <ReaderModel> > Get()
        {
            var readers = _readerService.GetAll();

            return(readers.ToList());
        }
Пример #5
0
 public IEnumerable <Reader> Get()
 {
     return(_readerService.GetAll());
 }