public HttpResponseMessage PostResource([FromBody] ResourceWithValue model)
 {
     try
     { ResourceRepository.AddResourceInfo(model);
       KafkaService.PostResource(model);
       return(Request.CreateResponse(System.Net.HttpStatusCode.OK, 202)); }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(System.Net.HttpStatusCode.BadRequest, ex));
     }
 }