예제 #1
0
        // GET: Footer
        public ActionResult LoadFooter()
        {
            var footer = footerRepository.GetAll().FirstOrDefault();

            ViewBag.Footer = footer.Contents;
            var lstinfo = infoUsefulRepository.GetAll().ToList();

            return(PartialView(lstinfo));
        }
예제 #2
0
        public IActionResult Index()
        {
            var model = repository.GetAll().ToList();

            return(View(model));
        }
예제 #3
0
        // GET: Footer
        public ActionResult LoadFooter()
        {
            var footer = footerRepository.GetAll().FirstOrDefault();

            return(PartialView(footer));
        }
예제 #4
0
 public IEnumerable <Footer> GetAll()
 {
     return(_footerRepository.GetAll());
 }
예제 #5
0
        public ActionResult Add()
        {
            var model = footerRepository.GetAll().FirstOrDefault();

            return(View(model));
        }
예제 #6
0
        public IViewComponentResult Invoke()
        {
            var footers = footer.GetAll().ToList();

            return(View(footers));
        }
예제 #7
0
 public async Task <IEnumerable <Footer> > GetAll()
 {
     return(await _footerRepository.GetAll());
 }
예제 #8
0
 public IEnumerable <Footer> GetAll()
 {
     return(sizeRepository.GetAll(new string[] { }));
 }
예제 #9
0
 public Footer GetAll()
 {
     return(_footerRepository.GetAll().SingleOrDefault());
 }