public PropertyModule(IExtendedPropertyDal propertyDal) : base("nancy/property")
        {
            _propertyDal = propertyDal;

            Get["/get/{tableId}"] = parameters => GetProperties(parameters.tableId);
            Post["/"]             = _ => HttpStatusCode.MethodNotAllowed;

            Post["/delete"] = _ =>
            {
                var property = this.Bind <ExtendedPropertyModel>();
                Remove(property);
                return(HttpStatusCode.OK);
            };

            Post["/add"] = _ =>
            {
                var property = this.Bind <ExtendedPropertyModel>();
                Add(property);
                return(HttpStatusCode.OK);
            };

            Post["/update"] = _ =>
            {
                var property = this.Bind <ExtendedPropertyModel>();
                Update(property);
                return(HttpStatusCode.OK);
            };
        }
        public PropertyModule(IExtendedPropertyDal propertyDal) : base("nancy/property")
        {
            _propertyDal = propertyDal;

            Get["/get/{tableId}"] = parameters => GetProperties(parameters.tableId);
            Post["/"] = _ => HttpStatusCode.MethodNotAllowed;

            Post["/delete"] = _ =>
            {
                var property = this.Bind<ExtendedPropertyModel>();
                Remove(property);
                return HttpStatusCode.OK;
            };

            Post["/add"] = _ =>
            {
                var property = this.Bind<ExtendedPropertyModel>();
                Add(property);
                return HttpStatusCode.OK;
            };

            Post["/update"] = _ =>
            {
                var property = this.Bind<ExtendedPropertyModel>();
                Update(property);
                return HttpStatusCode.OK;
            };
        }
 public ExtendedPropertyController(IExtendedPropertyDal propertyDal)
 {
     _propertyDal = propertyDal;
 }
 public ExtendedPropertyController(IExtendedPropertyDal propertyDal)
 {
     _propertyDal = propertyDal;
 }