public string Calculate([FromBody] ResistorValuesModel resistorValues) { if (resistorValues == null) { return("Bad Request"); } var result = _calculate.CalculateOhmValue(resistorValues.Band1, resistorValues.Band2, resistorValues.Multiplier, resistorValues.Tolerance); return(result); }