public ActionResult <PrismPowerFromThicknessModel> PrismPowerFromThickness(PrismPowerFromThicknessModel thickness) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } thickness.Result = Thickness.PrismPowerFromThickness(thickness.ThicknessDifference, thickness.LensDiameter, thickness.Index); return(thickness); }