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 })); } }
public MeasurementItem GetMeasurement(int measurementId) { return(_measurementRepository.GetMeasurement(measurementId)); }
public MeasurementDto GetMeasurement(string userId, int measurementId) { return(_repository.GetMeasurement(userId, measurementId)); }