Ejemplo n.º 1
0
        public ActionResult ShowAll()
        {
            List <HolidayListModel> holidays;

            using (var database = new LogicLL())
                holidays = mapper.Map <List <HolidayListModel> >(database.GetAllHolidayList());

            return(View(holidays));
        }
Ejemplo n.º 2
0
        public ActionResult Delete(Guid id) //DeletePage
        {
            HolidayListModel holiday;

            using (var database = new LogicLL())
                holiday = (mapper.Map <List <HolidayListModel> >(database.GetAllHolidayList()))
                          .Where(x => x.Id == id)
                          .First();

            return(View(holiday));
        }