Пример #1
0
        public ActionResult CreateJointPoint(string stepId)
        {
            var point = new JointPointViewModel
            {
                StepId = stepId
            };

            return(View(point));
        }
Пример #2
0
        public ActionResult CreateJointPoint(JointPointViewModel point)
        {
            if (!ModelState.IsValid)
            {
                return(View(point));
            }

            _robotProgramModel.AddJointPoint(point);
            return(RedirectToAction("GetPoints", new { stepId = point.StepId }));
        }
        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);
            }
        }