public ActionResult GetBoilingTemperature(Guid compoundId, TemperatureType type) { Log.Information("GET Compound/GetBoilingTemperature triggered"); var compoundElements = _repo.GetCompoundElementsByCompoundId(compoundId); double boilingTemperature = CompoundCalculator.GetBoilingTemperature(compoundElements, type); return(Json(boilingTemperature, JsonRequestBehavior.AllowGet)); }
public IHttpActionResult GetTemperatureRelatedCompounds() { Log.Information("GET Compound/GetTemperatureRelatedCompounds triggered"); var compoundElements = _repo.GetCompoundElements(); var relatedCompounds = CompoundCalculator.GetTemperatureRelatedCompounds(compoundElements); return(Ok(relatedCompounds)); }