public ActionResult Index(string newDayDate, string newDayComment)
 {
     var holiday = new RestHolidayTransferDays() {Date = DateTime.Parse(newDayDate), Descr = newDayComment};
     ResponseMessage message;
     holiday.Save(out message);
     var year = holiday.Date.Year;
     return RedirectToAction("Index", new {year});
 }
 public static void InitList()
 {
     ResponseMessage responseMessage;
     var holiday = new RestHolidayTransferDays()
     {
         Date = new DateTime(2015, 11, 04),
         Descr = "День народного единства"
     };
     holiday.Save(out responseMessage);
     holiday = new RestHolidayTransferDays()
     {
         Date = new DateTime(2016, 01, 01),
         Descr = "Новый год"
     };
     holiday.Save(out responseMessage);
     holiday = new RestHolidayTransferDays()
     {
         Date = new DateTime(2016, 01, 07),
         Descr = "Рождество"
     };
     holiday.Save(out responseMessage);
     holiday = new RestHolidayTransferDays()
     {
         Date = new DateTime(2016, 02, 23),
         Descr = "День защитника отечества"
     };
     holiday.Save(out responseMessage);
     holiday = new RestHolidayTransferDays()
     {
         Date = new DateTime(2016, 03, 08),
         Descr = "Международный женский день"
     };
     holiday.Save(out responseMessage);
 }