public ResponseWrapper <CreatePutEndPointModel> CreatePutEndPoint(CreatePutEndPointInputModel model)
        {
            var newEntity = new PutEndPoint
            {
                EndPointId = model.EndPointId,
                InputModelEndPointModelId = model.InputModelEndPointModelId,
                EndPoint =
                    new EndPoint
                {
                    Name               = model.EndPoint.Name,
                    Route              = model.EndPoint.Route,
                    CustomEndPoint     = model.EndPoint.CustomEndPoint,
                    EndPointType       = model.EndPoint.EndPointType,
                    RootEntityEntityId = model.EndPoint.RootEntityEntityId,
                    ServiceId          = model.EndPoint.ServiceId,
                    EndPointModelId    = model.EndPoint.EndPointModelId,
                    RootEndPointToRootEntityDataSourceId = model.EndPoint.RootEndPointToRootEntityDataSourceId,
                },
            };

            context
            .PutEndPoints
            .Add(newEntity);

            context.SaveChanges();
            var response = new CreatePutEndPointModel
            {
                PutEndPointId             = newEntity.PutEndPointId,
                EndPointId                = newEntity.EndPointId,
                InputModelEndPointModelId = newEntity.InputModelEndPointModelId,
            };

            return(new ResponseWrapper <CreatePutEndPointModel>(_validationDictionary, response));
        }
        public dynamic CreatePutEndPoint([FromBody] CreatePutEndPointInputModel model)
        {
            var orchestrator = new PutEndPointOrchestrator(new ModelStateWrapper(this.ModelState));

            return(orchestrator.CreatePutEndPoint(model).GetResponse());
        }