// POST api/UserTypes
        public HttpResponseMessage PostUserType(UserType usertype)
        {
            if (ModelState.IsValid)
            {
                db.UserTypes.Add(usertype);
                db.SaveChanges();

                HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created, usertype);
                response.Headers.Location = new Uri(Url.Link("DefaultApi", new { id = usertype.ID }));
                return response;
            }
            else
            {
                return Request.CreateResponse(HttpStatusCode.BadRequest);
            }
        }
        // PUT api/UserTypes/5
        public HttpResponseMessage PutUserType(int id, UserType usertype)
        {
            if (ModelState.IsValid && id == usertype.ID)
            {
                db.Entry(usertype).State = EntityState.Modified;

                try
                {
                    db.SaveChanges();
                }
                catch (DbUpdateConcurrencyException)
                {
                    return Request.CreateResponse(HttpStatusCode.NotFound);
                }

                return Request.CreateResponse(HttpStatusCode.OK);
            }
            else
            {
                return Request.CreateResponse(HttpStatusCode.BadRequest);
            }
        }