// DELETE api/servicetypes/4
 public HttpResponseMessage Delete(int id)
 {
     var serviceType = new ServiceType { ServiceTypeId = id };
       _db.ServiceTypes.Attach(serviceType);
       var status = _db.ServiceTypes.Remove(serviceType);
       _db.SaveChanges();
       if (status != null) return new HttpResponseMessage(HttpStatusCode.OK);
       throw new HttpResponseException(HttpStatusCode.NotFound);
 }
 //POST api/servicetypes
 public HttpResponseMessage Post([FromBody] ServiceTypeModel values)
 {
     var serviceType = new ServiceType
       {
      ServiceTypeName = values.ServiceTypeName
       };
       var servTp = _db.ServiceTypes.Add(serviceType);
       _db.SaveChanges();
       if (servTp != null)
       {
      var msg = new HttpResponseMessage(HttpStatusCode.Created);
      msg.Headers.Location = new Uri(Request.RequestUri + "/" + serviceType.ServiceTypeId.ToString());
      return msg;
       }
       else
       {
      var msg = new HttpResponseMessage(HttpStatusCode.BadRequest);
      return msg;
       }
 }