// POST api/values
        public HttpResponseMessage Post(int id, DataEntities.Models.tblSchoolYear schoolYearDetails)
        {
            var schoolYear = unitOfWork.SchoolyearRepository.GetByID(id);

            schoolYear.SchoolYear = schoolYearDetails.SchoolYear;
            schoolYear.Status     = schoolYearDetails.Status;
            schoolYear.SchoolID   = schoolYearDetails.SchoolID;
            unitOfWork.SchoolyearRepository.Update(schoolYear);
            unitOfWork.Save();
            return(Request.CreateResponse <tblSchoolYear>(HttpStatusCode.OK, schoolYear));
        }
        // GET api/values/5
        public HttpResponseMessage Get(int id)
        {
            var schoolYearDetails = unitOfWork.SchoolyearRepository.GetByID(id);
            var schoolYear        = new DataEntities.Models.tblSchoolYear();

            if (schoolYearDetails != null)
            {
                schoolYear.SchoolYear = schoolYearDetails.SchoolYear;
                schoolYear.Status     = schoolYearDetails.Status;
                schoolYear.SchoolID   = schoolYearDetails.SchoolID;
            }
            return(Request.CreateResponse <tblSchoolYear>(HttpStatusCode.OK, schoolYear));
        }