Google date quey,

refactiring,
docpage

* Yavsc.sln:
* Web.csproj:
* YavscModel.csproj:
* OtherWebException.cs:
* ProjectInfo.cs:
* IValueProvider.cs:
* CalendarApi.cs:
* HomeController.cs:
* TemplateException.cs:
* WorkFlowController.cs:
* NpgsqlWorkflow.csproj:
* GoogleErrorMessage.cs:
* ITCPNpgsqlProvider.cs:
* NpgsqlContentProvider.cs:
* ITContentProvider.csproj:
* FrontOfficeApiController.cs:
* NpgsqlContentProvider.csproj: refactoring

* App.master:
* WebApiConfig.cs: New Web api configuration architecture

* SalesCatalog.csproj:
* XmlCatalogProvider.cs: using MVC to get the catalog xml filename 

* WorkFlowManager.cs:
* FrontOfficeController.cs:
* CatalogManager.cs: No more extra argument to get the catalog

* DateQuery.aspx:
* AskForADate.cs:
* GoogleController.cs: Google Date new query model

* style.css:
* BBCodeHelper.cs: Doc page responsive design

* Service.cs:
* SetPrice.cs: xml doc

* WebApiConfig.cs: refactioring
This commit is contained in:
Paul Schneider
2015-03-04 14:41:35 +01:00
parent 7b0dd0c1e2
commit 721b11eba3
29 changed files with 124 additions and 104 deletions

View File

@ -36,6 +36,7 @@
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System.Configuration" />
<Reference Include="System.Web" />
<Reference Include="System.Web.Mvc" />
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs" />

View File

@ -15,6 +15,7 @@ namespace SalesCatalog.XmlImplementation
/// </summary>
public class XmlCatalogProvider: CatalogProvider
{
#region implemented abstract members of SalesCatalog.CatalogProvider
/// <summary>
/// Gets the catalog, loading it from
@ -60,12 +61,8 @@ namespace SalesCatalog.XmlImplementation
if (config ["connection"] == null)
throw new Exception ("the 'connection' parameter is null " +
"(it should be the absolute path to the xml catalog)");
// config ["connection"] starts with "~/"
fileName = (string) config ["connection"];
if (fileName.StartsWith ("~/")) {
fileName = HttpContext.Current.Server.MapPath(
config ["connection"]);
}
string cnx = (string) config ["connection"];
fileName = HttpContext.Current.Server.MapPath(cnx);
LoadCatalog ();
}