public HttpResponseMessage UpdateMeasurement([FromBody] MeasurementViewModel model)
 {
     try
     {
         var data = repo.UpdateMasurement(model);
         return(Request.CreateResponse(HttpStatusCode.OK, new { success = true, result = model, message = "the record has successfully been created" }));
     }
     catch (Exception e)
     {
         return(Request.CreateResponse(HttpStatusCode.OK, new { success = false, message = $"there was an error creating this record {e.Message}" }));
     }
 }