From 2d1c90527133cab01015613ecab943b39ba1c50e Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Thu, 4 May 2017 10:47:50 +0200 Subject: Fixed duplicated directories. --- .../HousingWebApi-fix/App_Start/BundleConfig.cs | 28 - .../HousingWebApi-fix/App_Start/FilterConfig.cs | 13 - .../HousingWebApi-fix/App_Start/RouteConfig.cs | 23 - .../HousingWebApi-fix/App_Start/WebApiConfig.cs | 24 - .../HousingWebApi-fix/ApplicationInsights.config | 79 - .../Areas/HelpPage/ApiDescriptionExtensions.cs | 39 - .../Areas/HelpPage/App_Start/HelpPageConfig.cs | 113 - .../Areas/HelpPage/Controllers/HelpController.cs | 63 - .../HousingWebApi-fix/Areas/HelpPage/HelpPage.css | 134 - .../Areas/HelpPage/HelpPageAreaRegistration.cs | 26 - .../HelpPage/HelpPageConfigurationExtensions.cs | 467 - .../CollectionModelDescription.cs | 7 - .../ComplexTypeModelDescription.cs | 14 - .../DictionaryModelDescription.cs | 6 - .../ModelDescriptions/EnumTypeModelDescription.cs | 15 - .../ModelDescriptions/EnumValueDescription.cs | 11 - .../IModelDocumentationProvider.cs | 12 - .../KeyValuePairModelDescription.cs | 9 - .../HelpPage/ModelDescriptions/ModelDescription.cs | 16 - .../ModelDescriptions/ModelDescriptionGenerator.cs | 451 - .../ModelDescriptions/ModelNameAttribute.cs | 18 - .../HelpPage/ModelDescriptions/ModelNameHelper.cs | 36 - .../ModelDescriptions/ParameterAnnotation.cs | 11 - .../ModelDescriptions/ParameterDescription.cs | 21 - .../SimpleTypeModelDescription.cs | 6 - .../Areas/HelpPage/Models/HelpPageApiModel.cs | 108 - .../SampleGeneration/HelpPageSampleGenerator.cs | 444 - .../HelpPage/SampleGeneration/HelpPageSampleKey.cs | 172 - .../Areas/HelpPage/SampleGeneration/ImageSample.cs | 41 - .../HelpPage/SampleGeneration/InvalidSample.cs | 37 - .../HelpPage/SampleGeneration/ObjectGenerator.cs | 456 - .../HelpPage/SampleGeneration/SampleDirection.cs | 11 - .../Areas/HelpPage/SampleGeneration/TextSample.cs | 37 - .../Areas/HelpPage/Views/Help/Api.cshtml | 22 - .../Views/Help/DisplayTemplates/ApiGroup.cshtml | 41 - .../CollectionModelDescription.cshtml | 6 - .../ComplexTypeModelDescription.cshtml | 3 - .../DictionaryModelDescription.cshtml | 4 - .../EnumTypeModelDescription.cshtml | 24 - .../Help/DisplayTemplates/HelpPageApiModel.cshtml | 67 - .../Views/Help/DisplayTemplates/ImageSample.cshtml | 4 - .../Help/DisplayTemplates/InvalidSample.cshtml | 13 - .../KeyValuePairModelDescription.cshtml | 4 - .../DisplayTemplates/ModelDescriptionLink.cshtml | 26 - .../Views/Help/DisplayTemplates/Parameters.cshtml | 48 - .../Views/Help/DisplayTemplates/Samples.cshtml | 30 - .../SimpleTypeModelDescription.cshtml | 3 - .../Views/Help/DisplayTemplates/TextSample.cshtml | 6 - .../Areas/HelpPage/Views/Help/Index.cshtml | 38 - .../Areas/HelpPage/Views/Help/ResourceModel.cshtml | 19 - .../Areas/HelpPage/Views/Shared/_Layout.cshtml | 12 - .../Areas/HelpPage/Views/Web.config | 41 - .../Areas/HelpPage/Views/_ViewStart.cshtml | 4 - .../Areas/HelpPage/XmlDocumentationProvider.cs | 161 - .../HousingWebApi-fix/Content/Site.css | 17 - .../HousingWebApi-fix/Content/bootstrap.css | 6816 -------------- .../HousingWebApi-fix/Content/bootstrap.min.css | 20 - .../Controllers/ApartmentsController.cs | 133 - .../Controllers/DefectsController.cs | 133 - .../Controllers/HomeController.cs | 18 - .../Controllers/PastContractOwnersController.cs | 133 - .../Controllers/ResidentsController.cs | 142 - .../Controllers/UsersController.cs | 147 - ApartmentManager/HousingWebApi-fix/DataModel.cs | 121 - ApartmentManager/HousingWebApi-fix/Global.asax | 1 - ApartmentManager/HousingWebApi-fix/Global.asax.cs | 23 - .../HousingWebApi-fix/HousingWebAPI.csproj | 315 - .../HousingWebApi-fix/Models/Apartment.cs | 42 - .../HousingWebApi-fix/Models/Defect.cs | 46 - .../HousingWebApi-fix/Models/PastContractOwner.cs | 17 - .../HousingWebApi-fix/Models/Resident.cs | 42 - ApartmentManager/HousingWebApi-fix/Models/User.cs | 59 - .../HousingWebApi-fix/Properties/AssemblyInfo.cs | 35 - ApartmentManager/HousingWebApi-fix/ResidentList.cs | 20 - .../HousingWebApi-fix/Scripts/bootstrap.js | 2014 ---- .../HousingWebApi-fix/Scripts/bootstrap.min.js | 21 - .../Scripts/jquery-1.10.2.intellisense.js | 2671 ------ .../HousingWebApi-fix/Scripts/jquery-1.10.2.js | 9803 -------------------- .../HousingWebApi-fix/Scripts/jquery-1.10.2.min.js | 23 - .../Scripts/jquery-1.10.2.min.map | 1 - .../HousingWebApi-fix/Scripts/modernizr-2.6.2.js | 1416 --- .../HousingWebApi-fix/Scripts/respond.js | 340 - .../HousingWebApi-fix/Scripts/respond.min.js | 20 - .../HousingWebApi-fix/Views/Home/Index.cshtml | 24 - .../HousingWebApi-fix/Views/Shared/Error.cshtml | 13 - .../HousingWebApi-fix/Views/Shared/_Layout.cshtml | 41 - .../HousingWebApi-fix/Views/Web.config | 43 - .../HousingWebApi-fix/Views/_ViewStart.cshtml | 3 - .../HousingWebApi-fix/Web.Debug.config | 30 - .../HousingWebApi-fix/Web.Release.config | 31 - ApartmentManager/HousingWebApi-fix/Web.config | 85 - ApartmentManager/HousingWebApi-fix/favicon.ico | Bin 32038 -> 0 bytes .../fonts/glyphicons-halflings-regular.eot | Bin 14079 -> 0 bytes .../fonts/glyphicons-halflings-regular.svg | 228 - .../fonts/glyphicons-halflings-regular.ttf | Bin 29512 -> 0 bytes .../fonts/glyphicons-halflings-regular.woff | Bin 16448 -> 0 bytes ApartmentManager/HousingWebApi-fix/packages.config | 30 - .../HousingWebApi/App_Start/BundleConfig.cs | 28 + .../HousingWebApi/App_Start/FilterConfig.cs | 13 + .../HousingWebApi/App_Start/RouteConfig.cs | 23 + .../HousingWebApi/App_Start/WebApiConfig.cs | 24 + .../HousingWebApi/ApplicationInsights.config | 79 + .../Areas/HelpPage/ApiDescriptionExtensions.cs | 39 + .../Areas/HelpPage/App_Start/HelpPageConfig.cs | 113 + .../Areas/HelpPage/Controllers/HelpController.cs | 63 + .../HousingWebApi/Areas/HelpPage/HelpPage.css | 134 + .../Areas/HelpPage/HelpPageAreaRegistration.cs | 26 + .../HelpPage/HelpPageConfigurationExtensions.cs | 467 + .../CollectionModelDescription.cs | 7 + .../ComplexTypeModelDescription.cs | 14 + .../DictionaryModelDescription.cs | 6 + .../ModelDescriptions/EnumTypeModelDescription.cs | 15 + .../ModelDescriptions/EnumValueDescription.cs | 11 + .../IModelDocumentationProvider.cs | 12 + .../KeyValuePairModelDescription.cs | 9 + .../HelpPage/ModelDescriptions/ModelDescription.cs | 16 + .../ModelDescriptions/ModelDescriptionGenerator.cs | 451 + .../ModelDescriptions/ModelNameAttribute.cs | 18 + .../HelpPage/ModelDescriptions/ModelNameHelper.cs | 36 + .../ModelDescriptions/ParameterAnnotation.cs | 11 + .../ModelDescriptions/ParameterDescription.cs | 21 + .../SimpleTypeModelDescription.cs | 6 + .../Areas/HelpPage/Models/HelpPageApiModel.cs | 108 + .../SampleGeneration/HelpPageSampleGenerator.cs | 444 + .../HelpPage/SampleGeneration/HelpPageSampleKey.cs | 172 + .../Areas/HelpPage/SampleGeneration/ImageSample.cs | 41 + .../HelpPage/SampleGeneration/InvalidSample.cs | 37 + .../HelpPage/SampleGeneration/ObjectGenerator.cs | 456 + .../HelpPage/SampleGeneration/SampleDirection.cs | 11 + .../Areas/HelpPage/SampleGeneration/TextSample.cs | 37 + .../Areas/HelpPage/Views/Help/Api.cshtml | 22 + .../Views/Help/DisplayTemplates/ApiGroup.cshtml | 41 + .../CollectionModelDescription.cshtml | 6 + .../ComplexTypeModelDescription.cshtml | 3 + .../DictionaryModelDescription.cshtml | 4 + .../EnumTypeModelDescription.cshtml | 24 + .../Help/DisplayTemplates/HelpPageApiModel.cshtml | 67 + .../Views/Help/DisplayTemplates/ImageSample.cshtml | 4 + .../Help/DisplayTemplates/InvalidSample.cshtml | 13 + .../KeyValuePairModelDescription.cshtml | 4 + .../DisplayTemplates/ModelDescriptionLink.cshtml | 26 + .../Views/Help/DisplayTemplates/Parameters.cshtml | 48 + .../Views/Help/DisplayTemplates/Samples.cshtml | 30 + .../SimpleTypeModelDescription.cshtml | 3 + .../Views/Help/DisplayTemplates/TextSample.cshtml | 6 + .../Areas/HelpPage/Views/Help/Index.cshtml | 38 + .../Areas/HelpPage/Views/Help/ResourceModel.cshtml | 19 + .../Areas/HelpPage/Views/Shared/_Layout.cshtml | 12 + .../HousingWebApi/Areas/HelpPage/Views/Web.config | 41 + .../Areas/HelpPage/Views/_ViewStart.cshtml | 4 + .../Areas/HelpPage/XmlDocumentationProvider.cs | 161 + ApartmentManager/HousingWebApi/Content/Site.css | 17 + .../HousingWebApi/Content/bootstrap.css | 6816 ++++++++++++++ .../HousingWebApi/Content/bootstrap.min.css | 20 + .../Controllers/ApartmentsController.cs | 133 + .../HousingWebApi/Controllers/DefectsController.cs | 133 + .../HousingWebApi/Controllers/HomeController.cs | 18 + .../Controllers/PastContractOwnersController.cs | 133 + .../Controllers/ResidentsController.cs | 142 + .../HousingWebApi/Controllers/UsersController.cs | 147 + ApartmentManager/HousingWebApi/DataModel.cs | 121 + ApartmentManager/HousingWebApi/Global.asax | 1 + ApartmentManager/HousingWebApi/Global.asax.cs | 23 + .../HousingWebApi/HousingWebAPI.csproj | 315 + ApartmentManager/HousingWebApi/Models/Apartment.cs | 42 + ApartmentManager/HousingWebApi/Models/Defect.cs | 46 + .../HousingWebApi/Models/PastContractOwner.cs | 17 + ApartmentManager/HousingWebApi/Models/Resident.cs | 42 + ApartmentManager/HousingWebApi/Models/User.cs | 59 + .../HousingWebApi/Properties/AssemblyInfo.cs | 35 + ApartmentManager/HousingWebApi/ResidentList.cs | 20 + .../HousingWebApi/Scripts/bootstrap.js | 2014 ++++ .../HousingWebApi/Scripts/bootstrap.min.js | 21 + .../Scripts/jquery-1.10.2.intellisense.js | 2671 ++++++ .../HousingWebApi/Scripts/jquery-1.10.2.js | 9803 ++++++++++++++++++++ .../HousingWebApi/Scripts/jquery-1.10.2.min.js | 23 + .../HousingWebApi/Scripts/jquery-1.10.2.min.map | 1 + .../HousingWebApi/Scripts/modernizr-2.6.2.js | 1416 +++ ApartmentManager/HousingWebApi/Scripts/respond.js | 340 + .../HousingWebApi/Scripts/respond.min.js | 20 + .../HousingWebApi/Views/Home/Index.cshtml | 24 + .../HousingWebApi/Views/Shared/Error.cshtml | 13 + .../HousingWebApi/Views/Shared/_Layout.cshtml | 41 + ApartmentManager/HousingWebApi/Views/Web.config | 43 + .../HousingWebApi/Views/_ViewStart.cshtml | 3 + ApartmentManager/HousingWebApi/Web.Debug.config | 30 + ApartmentManager/HousingWebApi/Web.Release.config | 31 + ApartmentManager/HousingWebApi/Web.config | 85 + ApartmentManager/HousingWebApi/favicon.ico | Bin 0 -> 32038 bytes .../fonts/glyphicons-halflings-regular.eot | Bin 0 -> 14079 bytes .../fonts/glyphicons-halflings-regular.svg | 228 + .../fonts/glyphicons-halflings-regular.ttf | Bin 0 -> 29512 bytes .../fonts/glyphicons-halflings-regular.woff | Bin 0 -> 16448 bytes ApartmentManager/HousingWebApi/packages.config | 30 + 194 files changed, 28641 insertions(+), 28641 deletions(-) delete mode 100644 ApartmentManager/HousingWebApi-fix/App_Start/BundleConfig.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/App_Start/FilterConfig.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/App_Start/RouteConfig.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/App_Start/WebApiConfig.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/ApplicationInsights.config delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/ApiDescriptionExtensions.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/App_Start/HelpPageConfig.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Controllers/HelpController.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/HelpPage.css delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/HelpPageAreaRegistration.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/HelpPageConfigurationExtensions.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/ModelDescriptions/CollectionModelDescription.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/ModelDescriptions/ComplexTypeModelDescription.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/ModelDescriptions/DictionaryModelDescription.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/ModelDescriptions/EnumTypeModelDescription.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/ModelDescriptions/EnumValueDescription.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/ModelDescriptions/IModelDocumentationProvider.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/ModelDescriptions/KeyValuePairModelDescription.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/ModelDescriptions/ModelDescription.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/ModelDescriptions/ModelDescriptionGenerator.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/ModelDescriptions/ModelNameAttribute.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/ModelDescriptions/ModelNameHelper.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/ModelDescriptions/ParameterAnnotation.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/ModelDescriptions/ParameterDescription.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/ModelDescriptions/SimpleTypeModelDescription.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Models/HelpPageApiModel.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/SampleGeneration/HelpPageSampleGenerator.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/SampleGeneration/HelpPageSampleKey.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/SampleGeneration/ImageSample.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/SampleGeneration/InvalidSample.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/SampleGeneration/ObjectGenerator.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/SampleGeneration/SampleDirection.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/SampleGeneration/TextSample.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Views/Help/Api.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Views/Help/DisplayTemplates/ApiGroup.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Views/Help/DisplayTemplates/CollectionModelDescription.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Views/Help/DisplayTemplates/ComplexTypeModelDescription.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Views/Help/DisplayTemplates/DictionaryModelDescription.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Views/Help/DisplayTemplates/EnumTypeModelDescription.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Views/Help/DisplayTemplates/HelpPageApiModel.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Views/Help/DisplayTemplates/ImageSample.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Views/Help/DisplayTemplates/InvalidSample.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Views/Help/DisplayTemplates/KeyValuePairModelDescription.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Views/Help/DisplayTemplates/ModelDescriptionLink.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Views/Help/DisplayTemplates/Parameters.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Views/Help/DisplayTemplates/Samples.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Views/Help/DisplayTemplates/SimpleTypeModelDescription.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Views/Help/DisplayTemplates/TextSample.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Views/Help/Index.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Views/Help/ResourceModel.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Views/Shared/_Layout.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Views/Web.config delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Views/_ViewStart.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Areas/HelpPage/XmlDocumentationProvider.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Content/Site.css delete mode 100644 ApartmentManager/HousingWebApi-fix/Content/bootstrap.css delete mode 100644 ApartmentManager/HousingWebApi-fix/Content/bootstrap.min.css delete mode 100644 ApartmentManager/HousingWebApi-fix/Controllers/ApartmentsController.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Controllers/DefectsController.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Controllers/HomeController.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Controllers/PastContractOwnersController.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Controllers/ResidentsController.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Controllers/UsersController.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/DataModel.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Global.asax delete mode 100644 ApartmentManager/HousingWebApi-fix/Global.asax.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/HousingWebAPI.csproj delete mode 100644 ApartmentManager/HousingWebApi-fix/Models/Apartment.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Models/Defect.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Models/PastContractOwner.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Models/Resident.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Models/User.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Properties/AssemblyInfo.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/ResidentList.cs delete mode 100644 ApartmentManager/HousingWebApi-fix/Scripts/bootstrap.js delete mode 100644 ApartmentManager/HousingWebApi-fix/Scripts/bootstrap.min.js delete mode 100644 ApartmentManager/HousingWebApi-fix/Scripts/jquery-1.10.2.intellisense.js delete mode 100644 ApartmentManager/HousingWebApi-fix/Scripts/jquery-1.10.2.js delete mode 100644 ApartmentManager/HousingWebApi-fix/Scripts/jquery-1.10.2.min.js delete mode 100644 ApartmentManager/HousingWebApi-fix/Scripts/jquery-1.10.2.min.map delete mode 100644 ApartmentManager/HousingWebApi-fix/Scripts/modernizr-2.6.2.js delete mode 100644 ApartmentManager/HousingWebApi-fix/Scripts/respond.js delete mode 100644 ApartmentManager/HousingWebApi-fix/Scripts/respond.min.js delete mode 100644 ApartmentManager/HousingWebApi-fix/Views/Home/Index.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Views/Shared/Error.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Views/Shared/_Layout.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Views/Web.config delete mode 100644 ApartmentManager/HousingWebApi-fix/Views/_ViewStart.cshtml delete mode 100644 ApartmentManager/HousingWebApi-fix/Web.Debug.config delete mode 100644 ApartmentManager/HousingWebApi-fix/Web.Release.config delete mode 100644 ApartmentManager/HousingWebApi-fix/Web.config delete mode 100644 ApartmentManager/HousingWebApi-fix/favicon.ico delete mode 100644 ApartmentManager/HousingWebApi-fix/fonts/glyphicons-halflings-regular.eot delete mode 100644 ApartmentManager/HousingWebApi-fix/fonts/glyphicons-halflings-regular.svg delete mode 100644 ApartmentManager/HousingWebApi-fix/fonts/glyphicons-halflings-regular.ttf delete mode 100644 ApartmentManager/HousingWebApi-fix/fonts/glyphicons-halflings-regular.woff delete mode 100644 ApartmentManager/HousingWebApi-fix/packages.config create mode 100644 ApartmentManager/HousingWebApi/App_Start/BundleConfig.cs create mode 100644 ApartmentManager/HousingWebApi/App_Start/FilterConfig.cs create mode 100644 ApartmentManager/HousingWebApi/App_Start/RouteConfig.cs create mode 100644 ApartmentManager/HousingWebApi/App_Start/WebApiConfig.cs create mode 100644 ApartmentManager/HousingWebApi/ApplicationInsights.config create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/ApiDescriptionExtensions.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/App_Start/HelpPageConfig.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Controllers/HelpController.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/HelpPage.css create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/HelpPageAreaRegistration.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/HelpPageConfigurationExtensions.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/ModelDescriptions/CollectionModelDescription.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/ModelDescriptions/ComplexTypeModelDescription.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/ModelDescriptions/DictionaryModelDescription.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/ModelDescriptions/EnumTypeModelDescription.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/ModelDescriptions/EnumValueDescription.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/ModelDescriptions/IModelDocumentationProvider.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/ModelDescriptions/KeyValuePairModelDescription.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/ModelDescriptions/ModelDescription.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/ModelDescriptions/ModelDescriptionGenerator.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/ModelDescriptions/ModelNameAttribute.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/ModelDescriptions/ModelNameHelper.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/ModelDescriptions/ParameterAnnotation.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/ModelDescriptions/ParameterDescription.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/ModelDescriptions/SimpleTypeModelDescription.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Models/HelpPageApiModel.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/SampleGeneration/HelpPageSampleGenerator.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/SampleGeneration/HelpPageSampleKey.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/SampleGeneration/ImageSample.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/SampleGeneration/InvalidSample.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/SampleGeneration/ObjectGenerator.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/SampleGeneration/SampleDirection.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/SampleGeneration/TextSample.cs create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Views/Help/Api.cshtml create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Views/Help/DisplayTemplates/ApiGroup.cshtml create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Views/Help/DisplayTemplates/CollectionModelDescription.cshtml create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Views/Help/DisplayTemplates/ComplexTypeModelDescription.cshtml create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Views/Help/DisplayTemplates/DictionaryModelDescription.cshtml create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Views/Help/DisplayTemplates/EnumTypeModelDescription.cshtml create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Views/Help/DisplayTemplates/HelpPageApiModel.cshtml create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Views/Help/DisplayTemplates/ImageSample.cshtml create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Views/Help/DisplayTemplates/InvalidSample.cshtml create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Views/Help/DisplayTemplates/KeyValuePairModelDescription.cshtml create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Views/Help/DisplayTemplates/ModelDescriptionLink.cshtml create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Views/Help/DisplayTemplates/Parameters.cshtml create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Views/Help/DisplayTemplates/Samples.cshtml create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Views/Help/DisplayTemplates/SimpleTypeModelDescription.cshtml create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Views/Help/DisplayTemplates/TextSample.cshtml create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Views/Help/Index.cshtml create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Views/Help/ResourceModel.cshtml create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Views/Shared/_Layout.cshtml create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Views/Web.config create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/Views/_ViewStart.cshtml create mode 100644 ApartmentManager/HousingWebApi/Areas/HelpPage/XmlDocumentationProvider.cs create mode 100644 ApartmentManager/HousingWebApi/Content/Site.css create mode 100644 ApartmentManager/HousingWebApi/Content/bootstrap.css create mode 100644 ApartmentManager/HousingWebApi/Content/bootstrap.min.css create mode 100644 ApartmentManager/HousingWebApi/Controllers/ApartmentsController.cs create mode 100644 ApartmentManager/HousingWebApi/Controllers/DefectsController.cs create mode 100644 ApartmentManager/HousingWebApi/Controllers/HomeController.cs create mode 100644 ApartmentManager/HousingWebApi/Controllers/PastContractOwnersController.cs create mode 100644 ApartmentManager/HousingWebApi/Controllers/ResidentsController.cs create mode 100644 ApartmentManager/HousingWebApi/Controllers/UsersController.cs create mode 100644 ApartmentManager/HousingWebApi/DataModel.cs create mode 100644 ApartmentManager/HousingWebApi/Global.asax create mode 100644 ApartmentManager/HousingWebApi/Global.asax.cs create mode 100644 ApartmentManager/HousingWebApi/HousingWebAPI.csproj create mode 100644 ApartmentManager/HousingWebApi/Models/Apartment.cs create mode 100644 ApartmentManager/HousingWebApi/Models/Defect.cs create mode 100644 ApartmentManager/HousingWebApi/Models/PastContractOwner.cs create mode 100644 ApartmentManager/HousingWebApi/Models/Resident.cs create mode 100644 ApartmentManager/HousingWebApi/Models/User.cs create mode 100644 ApartmentManager/HousingWebApi/Properties/AssemblyInfo.cs create mode 100644 ApartmentManager/HousingWebApi/ResidentList.cs create mode 100644 ApartmentManager/HousingWebApi/Scripts/bootstrap.js create mode 100644 ApartmentManager/HousingWebApi/Scripts/bootstrap.min.js create mode 100644 ApartmentManager/HousingWebApi/Scripts/jquery-1.10.2.intellisense.js create mode 100644 ApartmentManager/HousingWebApi/Scripts/jquery-1.10.2.js create mode 100644 ApartmentManager/HousingWebApi/Scripts/jquery-1.10.2.min.js create mode 100644 ApartmentManager/HousingWebApi/Scripts/jquery-1.10.2.min.map create mode 100644 ApartmentManager/HousingWebApi/Scripts/modernizr-2.6.2.js create mode 100644 ApartmentManager/HousingWebApi/Scripts/respond.js create mode 100644 ApartmentManager/HousingWebApi/Scripts/respond.min.js create mode 100644 ApartmentManager/HousingWebApi/Views/Home/Index.cshtml create mode 100644 ApartmentManager/HousingWebApi/Views/Shared/Error.cshtml create mode 100644 ApartmentManager/HousingWebApi/Views/Shared/_Layout.cshtml create mode 100644 ApartmentManager/HousingWebApi/Views/Web.config create mode 100644 ApartmentManager/HousingWebApi/Views/_ViewStart.cshtml create mode 100644 ApartmentManager/HousingWebApi/Web.Debug.config create mode 100644 ApartmentManager/HousingWebApi/Web.Release.config create mode 100644 ApartmentManager/HousingWebApi/Web.config create mode 100644 ApartmentManager/HousingWebApi/favicon.ico create mode 100644 ApartmentManager/HousingWebApi/fonts/glyphicons-halflings-regular.eot create mode 100644 ApartmentManager/HousingWebApi/fonts/glyphicons-halflings-regular.svg create mode 100644 ApartmentManager/HousingWebApi/fonts/glyphicons-halflings-regular.ttf create mode 100644 ApartmentManager/HousingWebApi/fonts/glyphicons-halflings-regular.woff create mode 100644 ApartmentManager/HousingWebApi/packages.config diff --git a/ApartmentManager/HousingWebApi-fix/App_Start/BundleConfig.cs b/ApartmentManager/HousingWebApi-fix/App_Start/BundleConfig.cs deleted file mode 100644 index 3c08fb2..0000000 --- a/ApartmentManager/HousingWebApi-fix/App_Start/BundleConfig.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System.Web; -using System.Web.Optimization; - -namespace HousingWebApi -{ - public class BundleConfig - { - // For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862 - public static void RegisterBundles(BundleCollection bundles) - { - bundles.Add(new ScriptBundle("~/bundles/jquery").Include( - "~/Scripts/jquery-{version}.js")); - - // Use the development version of Modernizr to develop with and learn from. Then, when you're - // ready for production, use the build tool at https://modernizr.com to pick only the tests you need. - bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( - "~/Scripts/modernizr-*")); - - bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( - "~/Scripts/bootstrap.js", - "~/Scripts/respond.js")); - - bundles.Add(new StyleBundle("~/Content/css").Include( - "~/Content/bootstrap.css", - "~/Content/site.css")); - } - } -} diff --git a/ApartmentManager/HousingWebApi-fix/App_Start/FilterConfig.cs b/ApartmentManager/HousingWebApi-fix/App_Start/FilterConfig.cs deleted file mode 100644 index 0761bdd..0000000 --- a/ApartmentManager/HousingWebApi-fix/App_Start/FilterConfig.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System.Web; -using System.Web.Mvc; - -namespace HousingWebApi -{ - public class FilterConfig - { - public static void RegisterGlobalFilters(GlobalFilterCollection filters) - { - filters.Add(new HandleErrorAttribute()); - } - } -} diff --git a/ApartmentManager/HousingWebApi-fix/App_Start/RouteConfig.cs b/ApartmentManager/HousingWebApi-fix/App_Start/RouteConfig.cs deleted file mode 100644 index 73807c8..0000000 --- a/ApartmentManager/HousingWebApi-fix/App_Start/RouteConfig.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; -using System.Web.Mvc; -using System.Web.Routing; - -namespace HousingWebApi -{ - public class RouteConfig - { - public static void RegisterRoutes(RouteCollection routes) - { - routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); - - routes.MapRoute( - name: "Default", - url: "{controller}/{action}/{id}", - defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } - ); - } - } -} diff --git a/ApartmentManager/HousingWebApi-fix/App_Start/WebApiConfig.cs b/ApartmentManager/HousingWebApi-fix/App_Start/WebApiConfig.cs deleted file mode 100644 index 54dcdcc..0000000 --- a/ApartmentManager/HousingWebApi-fix/App_Start/WebApiConfig.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web.Http; - -namespace HousingWebApi -{ - public static class WebApiConfig - { - public static void Register(HttpConfiguration config) - { - // Web API configuration and services - - // Web API routes - config.MapHttpAttributeRoutes(); - - config.Routes.MapHttpRoute( - name: "DefaultApi", - routeTemplate: "api/{controller}/{id}", - defaults: new { id = RouteParameter.Optional } - ); - } - } -} diff --git a/ApartmentManager/HousingWebApi-fix/ApplicationInsights.config b/ApartmentManager/HousingWebApi-fix/ApplicationInsights.config deleted file mode 100644 index 2e0a49a..0000000 --- a/ApartmentManager/HousingWebApi-fix/ApplicationInsights.config +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - - - - search|spider|crawl|Bot|Monitor|AlwaysOn - - - - - - - - - - - - - - - - - - - - - - System.Web.Handlers.TransferRequestHandler - Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler - System.Web.StaticFileHandler - System.Web.Handlers.AssemblyResourceLoader - System.Web.Optimization.BundleHandler - System.Web.Script.Services.ScriptHandlerFactory - System.Web.Handlers.TraceHandler - System.Web.Services.Discovery.DiscoveryRequestHandler - System.Web.HttpDebugHandler - - - - - - - - 5 - - - - \ No newline at end of file diff --git a/ApartmentManager/HousingWebApi-fix/Areas/HelpPage/ApiDescriptionExtensions.cs b/ApartmentManager/HousingWebApi-fix/Areas/HelpPage/ApiDescriptionExtensions.cs deleted file mode 100644 index e46eff1..0000000 --- a/ApartmentManager/HousingWebApi-fix/Areas/HelpPage/ApiDescriptionExtensions.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System; -using System.Text; -using System.Web; -using System.Web.Http.Description; - -namespace HousingWebApi.Areas.HelpPage -{ - public static class ApiDescriptionExtensions - { - /// - /// Generates an URI-friendly ID for the . E.g. "Get-Values-id_name" instead of "GetValues/{id}?name={name}" - /// - /// The . - /// The ID as a string. - public static string GetFriendlyId(this ApiDescription description) - { - string path = description.RelativePath; - string[] urlParts = path.Split('?'); - string localPath = urlParts[0]; - string queryKeyString = null; - if (urlParts.Length > 1) - { - string query = urlParts[1]; - string[] queryKeys = HttpUtility.ParseQueryString(query).AllKeys; - queryKeyString = String.Join("_", queryKeys); - } - - StringBuilder friendlyPath = new StringBuilder(); - friendlyPath.AppendFormat("{0}-{1}", - description.HttpMethod.Method, - localPath.Replace("/", "-").Replace("{", String.Empty).Replace("}", String.Empty)); - if (queryKeyString != null) - { - friendlyPath.AppendFormat("_{0}", queryKeyString.Replace('.', '-')); - } - return friendlyPath.ToString(); - } - } -} \ No newline at end of file diff --git a/ApartmentManager/HousingWebApi-fix/Areas/HelpPage/App_Start/HelpPageConfig.cs b/ApartmentManager/HousingWebApi-fix/Areas/HelpPage/App_Start/HelpPageConfig.cs deleted file mode 100644 index b568bab..0000000 --- a/ApartmentManager/HousingWebApi-fix/Areas/HelpPage/App_Start/HelpPageConfig.cs +++ /dev/null @@ -1,113 +0,0 @@ -// Uncomment the following to provide samples for PageResult. Must also add the Microsoft.AspNet.WebApi.OData -// package to your project. -////#define Handle_PageResultOfT - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Net.Http.Headers; -using System.Reflection; -using System.Web; -using System.Web.Http; -#if Handle_PageResultOfT -using System.Web.Http.OData; -#endif - -namespace HousingWebApi.Areas.HelpPage -{ - /// - /// Use this class to customize the Help Page. - /// For example you can set a custom to supply the documentation - /// or you can provide the samples for the requests/responses. - /// - public static class HelpPageConfig - { - [SuppressMessage("Microsoft.Globalization", "CA1303:Do not pass literals as localized parameters", - MessageId = "HousingWebApi.Areas.HelpPage.TextSample.#ctor(System.String)", - Justification = "End users may choose to merge this string with existing localized resources.")] - [SuppressMessage("Microsoft.Naming", "CA2204:Literals should be spelled correctly", - MessageId = "bsonspec", - Justification = "Part of a URI.")] - public static void Register(HttpConfiguration config) - { - //// Uncomment the following to use the documentation from XML documentation file. - //config.SetDocumentationProvider(new XmlDocumentationProvider(HttpContext.Current.Server.MapPath("~/App_Data/XmlDocument.xml"))); - - //// Uncomment the following to use "sample string" as the sample for all actions that have string as the body parameter or return type. - //// Also, the string arrays will be used for IEnumerable. The sample objects will be serialized into different media type - //// formats by the available formatters. - //config.SetSampleObjects(new Dictionary - //{ - // {typeof(string), "sample string"}, - // {typeof(IEnumerable), new string[]{"sample 1", "sample 2"}} - //}); - - // Extend the following to provide factories for types not handled automatically (those lacking parameterless - // constructors) or for which you prefer to use non-default property values. Line below provides a fallback - // since automatic handling will fail and GeneratePageResult handles only a single type. -#if Handle_PageResultOfT - config.GetHelpPageSampleGenerator().SampleObjectFactories.Add(GeneratePageResult); -#endif - - // Extend the following to use a preset object directly as the sample for all actions that support a media - // type, regardless of the body parameter or return type. The lines below avoid display of binary content. - // The BsonMediaTypeFormatter (if available) is not used to serialize the TextSample object. - config.SetSampleForMediaType( - new TextSample("Binary JSON content. See http://bsonspec.org for details."), - new MediaTypeHeaderValue("application/bson")); - - //// Uncomment the following to use "[0]=foo&[1]=bar" directly as the sample for all actions that support form URL encoded format - //// and have IEnumerable as the body parameter or return type. - //config.SetSampleForType("[0]=foo&[1]=bar", new MediaTypeHeaderValue("application/x-www-form-urlencoded"), typeof(IEnumerable)); - - //// Uncomment the following to use "1234" directly as the request sample for media type "text/plain" on the controller named "Values" - //// and action named "Put". - //config.SetSampleRequest("1234", new MediaTypeHeaderValue("text/plain"), "Values", "Put"); - - //// Uncomment the following to use the image on "../images/aspNetHome.png" directly as the response sample for media type "image/png" - //// on the controller named "Values" and action named "Get" with parameter "id". - //config.SetSampleResponse(new ImageSample("../images/aspNetHome.png"), new MediaTypeHeaderValue("image/png"), "Values", "Get", "id"); - - //// Uncomment the following to correct the sample request when the action expects an HttpRequestMessage with ObjectContent. - //// The sample will be generated as if the controller named "Values" and action named "Get" were having string as the body parameter. - //config.SetActualRequestType(typeof(string), "Values", "Get"); - - //// Uncomment the following to correct the sample response when the action returns an HttpResponseMessage with ObjectContent. - //// The sample will be generated as if the controller named "Values" and action named "Post" were returning a string. - //config.SetActualResponseType(typeof(string), "Values", "Post"); - } - -#if Handle_PageResultOfT - private static object GeneratePageResult(HelpPageSampleGenerator sampleGenerator, Type type) - { - if (type.IsGenericType) - { - Type openGenericType = type.GetGenericTypeDefinition(); - if (openGenericType == typeof(PageResult<>)) - { - // Get the T in PageResult - Type[] typeParameters = type.GetGenericArguments(); - Debug.Assert(typeParameters.Length == 1); - - // Create an enumeration to pass as the first parameter to the PageResult constuctor - Type itemsType = typeof(List<>).MakeGenericType(typeParameters); - object items = sampleGenerator.GetSampleObject(itemsType); - - // Fill in the other information needed to invoke the PageResult constuctor - Type[] parameterTypes = new Type[] { itemsType, typeof(Uri), typeof(long?), }; - object[] parameters = new object[] { items, null, (long)ObjectGenerator.DefaultCollectionSize, }; - - // Call PageResult(IEnumerable items, Uri nextPageLink, long? count) constructor - ConstructorInfo constructor = type.GetConstructor(parameterTypes); - return constructor.Invoke(parameters); - } - } - - return null; - } -#endif - } -} \ No newline at end of file diff --git a/ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Controllers/HelpController.cs b/ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Controllers/HelpController.cs deleted file mode 100644 index c47338a..0000000 --- a/ApartmentManager/HousingWebApi-fix/Areas/HelpPage/Controllers/HelpController.cs +++ /dev/null @@ -1,63 +0,0 @@ -using System; -using System.Web.Http; -using System.Web.Mvc; -using HousingWebApi.Areas.HelpPage.ModelDescriptions; -using HousingWebApi.Areas.HelpPage.Models; - -namespace HousingWebApi.Areas.HelpPage.Controllers -{ - /// - /// The controller that will handle requests for the help page. - /// - public class HelpController : Controller - { - private const string ErrorViewName = "Error"; - - public HelpController() - : this(GlobalConfiguration.Configuration) - { - } - - public HelpController(HttpConfiguration config) - { - Configuration = config; - } - - public HttpConfiguration Configuration { get; private set; } - - public ActionResult Index() - { - ViewBag.DocumentationProvider = Configuration.Services.GetDocumentationProvider(); - return View(Configuration.Services.GetApiExplorer().ApiDescriptions); - } - - public ActionResult Api(string apiId) - { - if (!String.IsNullOrEmpty(apiId)) - { - HelpPageApiModel apiModel = Configuration.GetHelpPageApiModel(apiId); - if (apiModel != null) - { - return View(apiModel); - } - } - - return View(ErrorViewName); - } - - public ActionResult ResourceModel(string modelName) - { - if (!String.IsNullOrEmpty(modelName)) - { - ModelDescriptionGenerator modelDescriptionGenerator = Configuration.GetModelDescriptionGenerator(); - ModelDescription modelDescription; - if (modelDescriptionGenerator.GeneratedModels.TryGetValue(modelName, out modelDescription)) - { - return View(modelDescription); - } - } - - return View(ErrorViewName); - } - } -} \ No newline at end of file diff --git a/ApartmentManager/HousingWebApi-fix/Areas/HelpPage/HelpPage.css b/ApartmentManager/HousingWebApi-fix/Areas/HelpPage/HelpPage.css deleted file mode 100644 index aff2230..0000000 --- a/ApartmentManager/HousingWebApi-fix/Areas/HelpPage/HelpPage.css +++ /dev/null @@ -1,134 +0,0 @@ -.help-page h1, -.help-page .h1, -.help-page h2, -.help-page .h2, -.help-page h3, -.help-page .h3, -#body.help-page, -.help-page-table th, -.help-page-table pre, -.help-page-table p { - font-family: "Segoe UI Light", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif; -} - -.help-page pre.wrapped { - white-space: -moz-pre-wrap; - white-space: -pre-wrap; - white-space: -o-pre-wrap; - white-space: pre-wrap; -} - -.help-page .warning-message-container { - margin-top: 20px; - padding: 0 10px; - color: #525252; - background: #EFDCA9; - border: 1px solid #CCCCCC; -} - -.help-page-table { - width: 100%; - border-collapse: collapse; - text-align: left; - margin: 0px 0px 20px 0px; - border-top: 1px solid #D4D4D4; -} - -.help-page-table th { - text-align: left; - font-weight: bold; - border-bottom: 1px solid #D4D4D4; - padding: 5px 6px 5px 6px; -} - -.help-page-table td { - border-bottom: 1px solid #D4D4D4; - padding: 10px 8px 10px 8px; - vertical-align: top; -} - -.help-page-table pre, -.help-page-table p { - margin: 0px; - padding: 0px; - font-family: inherit; - font-size: 100%; -} - -.help-page-table tbody tr:hover td { - background-color: #F3F3F3; -} - -.help-page a:hover { - background-color: transparent; -} - -.help-page .sample-header { - border: 2px solid #D4D4D4; - background: #00497E; - color: #FFFFFF; - padding: 8px 15px; - border-bottom: none; - display: inline-block; - margin: 10px 0px 0px 0px; -} - -.help-page .sample-content { - display: block; - border-width: 0; - padding: 15px 20px; - background: #FFFFFF; - border: 2px solid #D4D4D4; - margin: 0px 0px 10px 0px; -} - -.help-page .api-name { - width: 40%; -} - -.help-page .api-documentation { - width: 60%; -} - -.help-page .parameter-name { - width: 20%; -} - -.help-page .parameter-documentation { - width: 40%; -} - -.help-page .parameter-type { - width: 20%; -} - -.help-page .parameter-annotations { - width: 20%; -} - -.help-page h1, -.help-page .h1 { - font-size: 36px; - line-height: normal; -} - -.help-page h2, -.help-page .h2 { - font-size: 24px; -} - -.help-page h3, -.help-page .h3 { - font-size: 20px; -} - -#body.help-page { - font-size: 14px; - line-height: 143%; - color: #333; -} - -.help-page a { - color: #0000EE; - text-decoration: none; -} diff --git a/ApartmentManager/HousingWebApi-fix/Areas/HelpPage/HelpPageAreaRegistration.cs b/ApartmentManager/HousingWebApi-fix/Areas/HelpPage/HelpPageAreaRegistration.cs deleted file mode 100644 index a513a84..0000000 --- a/ApartmentManager/HousingWebApi-fix/Areas/HelpPage/HelpPageAreaRegistration.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System.Web.Http; -using System.Web.Mvc; - -namespace HousingWebApi.Areas.HelpPage -{ - public class HelpPageAreaRegistration : AreaRegistration - { - public override string AreaName - { - get - { - return "HelpPage"; - } - } - - public override void RegisterArea(AreaRegistrationContext context) - { - context.MapRoute( - "HelpPage_Default", - "Help/{action}/{apiId}", - new { controller = "Help", action = "Index", apiId = UrlParameter.Optional }); - - HelpPageConfig.Register(GlobalConfiguration.Configuration); - } - } -} \ No newline at end of file diff --git a/ApartmentManager/HousingWebApi-fix/Areas/HelpPage/HelpPageConfigurationExtensions.cs b/ApartmentManager/HousingWebApi-fix/Areas/HelpPage/HelpPageConfigurationExtensions.cs deleted file mode 100644 index 29b8681..0000000 --- a/ApartmentManager/HousingWebApi-fix/Areas/HelpPage/HelpPageConfigurationExtensions.cs +++ /dev/null @@ -1,467 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Linq; -using System.Net.Http; -using System.Net.Http.Headers; -using System.Web.Http; -using System.Web.Http.Controllers; -using System.Web.Http.Description; -using HousingWebApi.Areas.HelpPage.ModelDescriptions; -using HousingWebApi.Areas.HelpPage.Models; - -namespace HousingWebApi.Areas.HelpPage -{ - public static class HelpPageConfigurationExtensions - { - private const string ApiModelPrefix = "MS_HelpPageApiModel_"; - - /// - /// Sets the documentation provider for help page. - /// - /// The . - /// The documentation provider. - public static void SetDocumentationProvider(this HttpConfiguration config, IDocumentationProvider documentationProvider) - { - config.Services.Replace(typeof(IDocumentationProvider), documentationProvider); - } - - /// - /// Sets the objects that will be used by the formatters to produce sample requests/responses. - /// - /// The . - /// The sample objects. - public static void SetSampleObjects(this HttpConfiguration config, IDictionary sampleObjects) - { - config.GetHelpPageSampleGenerator().SampleObjects = sampleObjects; - } - - /// - /// Sets the sample request directly for the specified media type and action. - /// - /// The . - /// The sample request. - /// The media type. - /// Name of the controller. - /// Name of the action. - public static void SetSampleRequest(this HttpConfiguration config, object sample, MediaTypeHeaderValue mediaType, string controllerName, string actionName) - { - config.GetHelpPageSampleGenerator().ActionSamples.Add(new HelpPageSampleKey(mediaType, SampleDirection.Request, controllerName, actionName, new[] { "*" }), sample); - } - - /// - /// Sets the sample request directly for the specified media type and action with parameters. - /// - /// The . - /// The sample request. - /// The media type. - /// Name of the controller. - /// Name of the action. - /// The parameter names. - public static void SetSampleRequest(this HttpConfiguration config, object sample, MediaTypeHeaderValue mediaType, string controllerName, string actionName, params string[] parameterNames) - { - config.GetHelpPageSampleGenerator().ActionSamples.Add(new HelpPageSampleKey(mediaType, SampleDirection.Request, controllerName, actionName, parameterNames), sample); - } - - /// - /// Sets the sample request directly for the specified media type of the action. - /// - /// The . - /// The sample response. - /// The media type. - /// Name of the controller. - /// Name of the action. - public static void SetSampleResponse(this HttpConfiguration config, object sample, MediaTypeHeaderValue mediaType, string controllerName, string actionName) - { - config.GetHelpPageSampleGenerator().ActionSamples.Add(new HelpPageSampleKey(mediaType, SampleDirection.Response, controllerName, actionName, new[] { "*" }), sample); - } - - /// - /// Sets the sample response directly for the specified media type of the action with specific parameters. - /// - /// The . - /// The sample response. - /// The media type. - /// Name of the controller. - /// Name of the action. - /// The parameter names. - public static void SetSampleResponse(this HttpConfiguration config, object sample, MediaTypeHeaderValue mediaType, string controllerName, string actionName, params string[] parameterNames) - { - config.GetHelpPageSampleGenerator().ActionSamples.Add(new HelpPageSampleKey(mediaType, SampleDirection.Response, controllerName, actionName, parameterNames), sample); - } - - /// - /// Sets the sample directly for all actions with the specified media type. - /// - /// The . - /// The sample. - /// The media type. - public static void SetSampleForMediaType(this HttpConfiguration config, object sample, MediaTypeHeaderValue mediaType) - { - config.GetHelpPageSampleGenerator().ActionSamples.Add(new HelpPageSampleKey(mediaType), sample); - } - - /// - /// Sets the sample directly for all actions with the specified type and media type. - /// - /// The . - /// The sample. - /// The media type. - /// The parameter type or return type of an action. - public static void SetSampleForType(this HttpConfiguration config, object sample, MediaTypeHeaderValue mediaType, Type type) - { - config.GetHelpPageSampleGenerator().ActionSamples.Add(new HelpPageSampleKey(mediaType, type), sample); - } - - /// - /// Specifies the actual type of passed to the in an action. - /// The help page will use this information to produce more accurate request samples. - /// - /// The . - /// The type. - /// Name of the controller. - /// Name of the action. - public static void SetActualRequestType(this HttpConfiguration config, Type type, string controllerName, string actionName) - { - config.GetHelpPageSampleGenerator().ActualHttpMessageTypes.Add(new HelpPageSampleKey(SampleDirection.Request, controllerName, actionName, new[] { "*" }), type); - } - - /// - /// Specifies the actual type of passed to the in an action. - /// The help page will use this information to produce more accurate request samples. - /// - /// The . - /// The type. - /// Name of the controller. - /// Name of the action. - /// The parameter names. - public static void SetActualRequestType(this HttpConfiguration config, Type type, string controllerName, string actionName, params string[] parameterNames) - { - config.GetHelpPageSampleGenerator().ActualHttpMessageTypes.Add(new HelpPageSampleKey(SampleDirection.Request, controllerName, actionName, parameterNames), type); - } - - /// - /// Specifies the actual type of returned as part of the in an action. - /// The help page will use this information to produce more accurate response samples. - /// - /// The . - /// The type. - /// Name of the controller. - /// Name of the action. - public static void SetActualResponseType(this HttpConfiguration config, Type type, string controllerName, string actionName) - { - config.GetHelpPageSampleGenerator().ActualHttpMessageTypes.Add(new HelpPageSampleKey(SampleDirection.Response,