Ejemplo n.º 1
0
        public dynamic GetPropertyEnumProperty(int propertyId)
        {
            var orchestrator = new PropertyOrchestrator(new ModelStateWrapper(this.ModelState));

            return(orchestrator.GetPropertyEnumProperty(propertyId).GetResponse());
        }
Ejemplo n.º 2
0
        public dynamic CreateProperty([FromBody] CreatePropertyInputModel model)
        {
            var orchestrator = new PropertyOrchestrator(new ModelStateWrapper(this.ModelState));

            return(orchestrator.CreateProperty(model).GetResponse());
        }
Ejemplo n.º 3
0
        public dynamic EditProperty(int propertyId, [FromBody] EditPropertyInputModel model)
        {
            var orchestrator = new PropertyOrchestrator(new ModelStateWrapper(this.ModelState));

            return(orchestrator.EditProperty(propertyId, model).GetResponse());
        }
Ejemplo n.º 4
0
        public dynamic GetAllProperties()
        {
            var orchestrator = new PropertyOrchestrator(new ModelStateWrapper(this.ModelState));

            return(orchestrator.GetAllProperties().GetResponse());
        }