// DELETE: api/Configuration/5
        public HttpResponseMessage Delete(string id)
        {
            var provider = new EnumListValueProvider(DbInfo);
            var deleted  = provider.DeleteEnumValue(id);

            return(Request.CreateResponse(HttpStatusCode.OK, deleted));
        }
        public HttpResponseMessage Get(string Key)
        {
            var certification = new EnumListValueProvider(DbInfo).GetEnumListValue(Key);
            var exists        = certification != null;
            var status        = exists ? HttpStatusCode.OK : HttpStatusCode.NotFound;

            return(Request.CreateResponse(status, certification));
        }
 // POST: api/Inspection
 public HttpResponseMessage Post(EnumListValue enumList)
 {
     try
     {
         var provider = new EnumListValueProvider(DbInfo);
         var isSaved  = provider.Save(enumList);
         return(Request.CreateResponse(HttpStatusCode.OK, isSaved));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex.Message));
     }
 }