aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ApartmentManager/HousingWebAPI/Controllers/UsersController.cs24
-rw-r--r--ApartmentManager/HousingWebAPI/HousingWebAPI.csproj1
-rw-r--r--ApartmentManager/HousingWebAPI/Web.config2
3 files changed, 13 insertions, 14 deletions
diff --git a/ApartmentManager/HousingWebAPI/Controllers/UsersController.cs b/ApartmentManager/HousingWebAPI/Controllers/UsersController.cs
index 098c97a..af3ac1d 100644
--- a/ApartmentManager/HousingWebAPI/Controllers/UsersController.cs
+++ b/ApartmentManager/HousingWebAPI/Controllers/UsersController.cs
@@ -23,18 +23,18 @@ namespace HousingWebApi.Controllers
}
// GET: api/Users/by-username/username
- [ResponseType(typeof(User))]
- [Route("api/Users/by-username/{username}")]
- public IHttpActionResult GetUserByUsername(string username)
- {
- User user = db.Users.SingleOrDefault(u => u.Username == username);
- if (user == null)
- {
- return NotFound();
- }
-
- return Ok(user);
- }
+ //[ResponseType(typeof(User))]
+ //[Route("api/Users/by-username/{username:string}")]
+ //public IHttpActionResult GetUserByUsername(string username)
+ //{
+ // User user = db.Users.Find(username);
+ // if (user == null)
+ // {
+ // return NotFound();
+ // }
+
+ // return Ok(user);
+ //}
// GET: api/Users/5
[ResponseType(typeof(User))]
diff --git a/ApartmentManager/HousingWebAPI/HousingWebAPI.csproj b/ApartmentManager/HousingWebAPI/HousingWebAPI.csproj
index da2d507..f824c8e 100644
--- a/ApartmentManager/HousingWebAPI/HousingWebAPI.csproj
+++ b/ApartmentManager/HousingWebAPI/HousingWebAPI.csproj
@@ -232,7 +232,6 @@
<Content Include="ApplicationInsights.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
- <None Include="Properties\PublishProfiles\HousingWebAPI - Web Deploy.pubxml" />
<None Include="Scripts\jquery-1.10.2.intellisense.js" />
<Content Include="Scripts\jquery-1.10.2.js" />
<Content Include="Scripts\jquery-1.10.2.min.js" />
diff --git a/ApartmentManager/HousingWebAPI/Web.config b/ApartmentManager/HousingWebAPI/Web.config
index 2f197ae..309aba0 100644
--- a/ApartmentManager/HousingWebAPI/Web.config
+++ b/ApartmentManager/HousingWebAPI/Web.config
@@ -20,7 +20,6 @@
<httpModules>
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
</httpModules>
- <customErrors mode="Off"/>
</system.web>
<system.webServer>
<handlers>
@@ -80,5 +79,6 @@
</providers>
</entityFramework>
<connectionStrings>
+
<add name="DataModel" connectionString="data source=housingdb.database.windows.net;initial catalog=housingdb;persist security info=True;user id=deltaadmin;password=Delta123!;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" /></connectionStrings>
</configuration> \ No newline at end of file