public IHttpActionResult PutSchoolStatu(string id, SchoolStatu schoolStatu)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != schoolStatu.SchoolStatus)
            {
                return(BadRequest());
            }

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

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!SchoolStatuExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult GetSchoolStatu(string id)
        {
            SchoolStatu schoolStatu = db.SchoolStatus.Find(id);

            if (schoolStatu == null)
            {
                return(NotFound());
            }

            return(Ok(schoolStatu));
        }
        public IHttpActionResult DeleteSchoolStatu(string id)
        {
            SchoolStatu schoolStatu = db.SchoolStatus.Find(id);

            if (schoolStatu == null)
            {
                return(NotFound());
            }

            db.SchoolStatus.Remove(schoolStatu);
            db.SaveChanges();

            return(Ok(schoolStatu));
        }