Пример #1
0
 public IEnumerable <AuthorViewModel> GetAuthors()
 {
     return(Mapper.Map <IEnumerable <Author>, List <AuthorViewModel> >(_authorRepository.GetAll()));
 }
 public IEnumerable <MagazineViewModel> GetMagazines()
 {
     return(Mapper.Map <IEnumerable <Magazine>, List <MagazineViewModel> >(_magazineRepository.GetAll()));
 }
        //private CareerCloudContext db = new CareerCloudContext();

        // GET: SystemLanguageCode
        public ActionResult Index()
        {
            return(View(systemLanguageLogic.GetAll()));//db.SystemLanguageCodes.ToList());
        }
 public IEnumerable <CoursePoco> GetAll()
 {
     return(_eFGenericRepository.GetAll());
 }
Пример #5
0
        public ActionResult Index()
        {
            var companyJobs = _EF.GetAll();//db.CompanyJobs.Include(c => c.CompanyProfiles).Include(c =>c.CompanyJobDescriptions);

            return(View(companyJobs));
        }
        public List <SystemLanguageCodePoco> GetLanguage()
        {
            EFGenericRepository <SystemLanguageCodePoco> systemLanguageCodeLogic = new EFGenericRepository <SystemLanguageCodePoco>();

            return(systemLanguageCodeLogic.GetAll().ToList());
        }
 public IEnumerable <StudentPoco> GetAll()
 {
     return(_eFGenericRepository.GetAll(s => s.Enrollments));
 }
Пример #8
0
 public IEnumerable <EnrollmentPoco> GetAll()
 {
     return(_eFGenericRepository.GetAll());
 }
        //private CareerCloudContext db = new CareerCloudContext();

        // GET: SystemCountryCode
        public ActionResult Index()
        {
            return(View(systemCountryCodeLogic.GetAll()));//db.SystemCountryCodes.ToList());
        }
Пример #10
0
 public IEnumerable <PublicationHouseViewModel> GetPublicationHouses()
 {
     return(Mapper.Map <IEnumerable <PublicationHouse>, List <PublicationHouseViewModel> >(_publicationServiceRepository.GetAll()));
 }
Пример #11
0
 public IEnumerable <BrochureViewModel> GetBrochures()
 {
     return(Mapper.Map <IEnumerable <Brochure>, List <BrochureViewModel> >(_brochureRepository.GetAll()));
 }