Esempio n. 1
0
        public ActionResult Index()
        {
            ViewBag.ImagePath = ControllerConstants.ImagePath;
            var allEvents = _eventsService.GetAll();

            return(View(allEvents));
        }
 public List <EventDTO> GetAllEvents()
 {
     return(eventsServices.GetAll());
 }
 public IHttpActionResult GetAll()
 {
     return(Json(_service.GetAll()));
 }