public HttpResponseMessage PostEmployeeCourseStatus(EmployeeCourseStatus data)
        {
            if (ModelState.IsValid)
            {
                data.Active = true;
                employeeCourseStatusRepository.Insert(data);

                HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created, data);
                return response;
            }
            return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
        }
        public HttpResponseMessage PutEmployeeCourseStatus(int id, EmployeeCourseStatus data)
        {
            if (!ModelState.IsValid)
            {
                return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
            }

            if (id != data.Id)
            {
                return Request.CreateResponse(HttpStatusCode.BadRequest);
            }

            employeeCourseStatusRepository.Update(x => x.Id == id, data);

            return Request.CreateResponse(HttpStatusCode.OK);
        }