public ResponseWrapper <CreateEndPointModelModel> CreateEndPointModel(CreateEndPointModelInputModel model)
        {
            var newEntity = new EndPointModel
            {
                Name     = model.Name,
                EntityId = model.EntityId,
            };

            context
            .EndPointModels
            .Add(newEntity);

            context.SaveChanges();
            var response = new CreateEndPointModelModel
            {
                EndPointModelId = newEntity.EndPointModelId,
                Name            = newEntity.Name,
                EntityId        = newEntity.EntityId,
            };

            return(new ResponseWrapper <CreateEndPointModelModel>(_validationDictionary, response));
        }
        public dynamic CreateEndPointModel([FromBody] CreateEndPointModelInputModel model)
        {
            var orchestrator = new EndPointModelOrchestrator(new ModelStateWrapper(this.ModelState));

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