public ActionResult Holiday()
        {
            ViewBag.SchoolId = 1;
            HolidaysDto colidaysDto = new HolidaysDto();

            return(View(colidaysDto));
        }
        public MessageDTO addUpdateHolidayDetail(HolidaysDto holiday)
        {
            Holidays holi   = Mapper.Map <HolidaysDto, Holidays>(holiday);
            Message  msg    = _class.addUpdateHolidayDetail(holi);
            var      result = Mapper.Map <Message, MessageDTO>(msg);

            return(result);
        }
        public ActionResult SubmitHoliday(HolidaysDto holiday)
        {
            MessageDTO message = new MessageDTO();

            WCFProxy.Using((delegate(IClassSetupService client)
            {
                message = client.addUpdateHolidayDetail(holiday);
            }));

            return(Json(message.message, JsonRequestBehavior.AllowGet));
        }