예제 #1
0
        public ActionResult <PrismThicknessModel> PrismThickness(PrismThicknessModel thickness)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            thickness.Result = Thickness.PrismThickness(thickness.PrismPower, thickness.LensDiameter, thickness.Index);
            return(thickness);
        }