public ActionResult <PrismThicknessModel> PrismThickness(PrismThicknessModel thickness) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } thickness.Result = Thickness.PrismThickness(thickness.PrismPower, thickness.LensDiameter, thickness.Index); return(thickness); }