示例#1
0
        public ResponseWrapper <EditGetDetailsEndPointModel> EditGetDetailsEndPoint(int getdetailsendpointId, EditGetDetailsEndPointInputModel model)
        {
            var entity = context
                         .GetDetailsEndPoints
                         .Single(x =>
                                 x.GetDetailsEndPointId == getdetailsendpointId
                                 );

            entity.EndPointId = model.EndPointId;
            context.SaveChanges();
            var response = new EditGetDetailsEndPointModel
            {
                GetDetailsEndPointId = entity.GetDetailsEndPointId,
                EndPointId           = entity.EndPointId,
            };

            return(new ResponseWrapper <EditGetDetailsEndPointModel>(_validationDictionary, response));
        }
        public dynamic EditGetDetailsEndPoint(int getdetailsendpointId, [FromBody] EditGetDetailsEndPointInputModel model)
        {
            var orchestrator = new GetDetailsEndPointOrchestrator(new ModelStateWrapper(this.ModelState));

            return(orchestrator.EditGetDetailsEndPoint(getdetailsendpointId, model).GetResponse());
        }