public void UpdateJointPoint(JointPointViewModel point)
        {
            try
            {
                JointPointDto pointDto = Mapper.Map <JointPointDto>(point);

                _robotProgramService.UpdateJointPoint(pointDto);
            }
            catch (FaultException ex)
            {
                throw new HttpException((int)HttpStatusCode.InternalServerError, "Error occured while updating point", ex);
            }
        }
Esempio n. 2
0
        public void UpdateJointPoint(JointPointDto point)
        {
            // TODO: null-possibility should rather be checked in Buisness logic, and here just try-catch-toFaultConv
            if (point == null)
            {
                var fault = new ArgumentFault
                {
                    Message      = "Argumnet is null",
                    ArgumentName = nameof(point)
                };

                throw new FaultException <ArgumentFault>(fault);
            }

            JointPoint pointEntity = Mapper.Map <JointPoint>(point);

            _robotProgramBusinessLogic.UpdateJointPoint(pointEntity);
        }