Пример #1
0
        public ResponseMessage <List <Ugyfel> > GetAll()
        {
            ResponseMessage <List <Ugyfel> > response = new ResponseMessage <List <Ugyfel> >();

            try
            {
                response.ResponseObject = _ugyfelRepository.GetAll();
                response.IsSuccess      = true;
                response.ErrorMessage   = "Success";
            }

            catch (Exception ex)
            {
                response.IsSuccess    = false;
                response.ErrorMessage = ex.Message;
            }

            return(response);
        }
 public void LoadData()
 {
     view.bindingList = repo.GetAll(
         view.page, view.itemsPerPage, view.search, view.sortBy, view.ascending);
     view.totalItems = repo.TotalItems;
 }
 public void LoadData()
 {
     view.ugyfelList = ugyfelRepo.GetAll().Select(x => x.TeljesNev).ToArray();
     view.jarmuList  = jarmuRepo.GetAll().Where(x => x.elerheto == true).Select(x => x.rendszam).ToArray();
 }