// DELETE api/students/5
        public HttpResponseMessage Delete(int id)
        {
            using (provider = new EntDAL.EFProvider())
            {
                StudentService service = new StudentService(provider);

                if (service.DeleteStudent(id))
                {
                    HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.NoContent);
                    return response;
                }
                else
                {
                    HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.NotFound);
                    return response;
                }
            }
        }