// POST api/GeneralHoliday
        public HttpResponseMessage PostGeneralHoliday(GeneralHoliday generalholiday)
        {
            if (ModelState.IsValid)
            {
                db.GeneralHolidays.Add(generalholiday);
                db.SaveChanges();

                HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created, generalholiday);
                response.Headers.Location = new Uri(Url.Link("DefaultApi", new { id = generalholiday.GeneralHolidayID }));
                return response;
            }
            else
            {
                return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
            }
        }
        // PUT api/GeneralHoliday/5
        public HttpResponseMessage PutGeneralHoliday(long id, GeneralHoliday generalholiday)
        {
            if (!ModelState.IsValid)
            {
                return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
            }

            if (id != generalholiday.GeneralHolidayID)
            {
                return Request.CreateResponse(HttpStatusCode.BadRequest);
            }

            db.Entry(generalholiday).State = EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException ex)
            {
                return Request.CreateErrorResponse(HttpStatusCode.NotFound, ex);
            }

            return Request.CreateResponse(HttpStatusCode.OK);
        }