Ejemplo n.º 1
0
        public ActionResult <PrismPowerFromThicknessModel> PrismPowerFromThickness(PrismPowerFromThicknessModel thickness)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            thickness.Result = Thickness.PrismPowerFromThickness(thickness.ThicknessDifference, thickness.LensDiameter, thickness.Index);
            return(thickness);
        }