public IEnumerable <string> FromUnits() { AuditApi.Audit(new Library.Models.ActionAuditModel { Action = "FromUnits", Component = "ConvertController", User = RequestUser }); return(WebApi.GetFromUnits()); }
public double Convert(string fromUnit, string toUnit, double fromValue) { AuditApi.Audit(new Library.Models.ActionAuditModel { Action = "Convert", Component = "ConvertController", User = RequestUser, Value = $"fromUnit: '{fromUnit}', toUnit: '{toUnit}', value: '{fromValue}'" }); return(WebApi.GetConversion(fromUnit, toUnit, fromValue)); }
public IEnumerable <string> ToUnits(string fromUnit) { AuditApi.Audit(new Library.Models.ActionAuditModel { Action = "ToUnits", Component = "ConvertController", User = RequestUser, Value = "fromUnit " + fromUnit }); return(WebApi.GetToUnits(fromUnit)); }