public HttpResponseMessage GetMeasurement()
 {
     try
     {
         var data = repo.GetMeasurement().ToList();
         return(Request.CreateResponse(HttpStatusCode.OK, new { success = true, result = data }));
     }
     catch (Exception e)
     {
         return(Request.CreateResponse(HttpStatusCode.OK, new { success = false, message = e.Message }));
     }
 }
예제 #2
0
 public MeasurementItem GetMeasurement(int measurementId)
 {
     return(_measurementRepository.GetMeasurement(measurementId));
 }
예제 #3
0
 public MeasurementDto GetMeasurement(string userId, int measurementId)
 {
     return(_repository.GetMeasurement(userId, measurementId));
 }