Activity index, Db schema validation.
This commit is contained in:
2021-05-31 20:27:40 +01:00
parent 63473c725b
commit 7b0a710b13
36 changed files with 1008 additions and 208 deletions
+23
View File
@@ -3,7 +3,9 @@ using Microsoft.AspNetCore.Mvc.Localization;
using Microsoft.Extensions.Localization;
using Microsoft.Extensions.Logging;
using Sarand.Net.Standard.Base.App;
using Sarand.Net.Standard.Base.Bus;
using Sarand.Net.Standard.Base.Core;
using Sarand.Net.Standard.Base.Utils;
using Saxonite.Net.Standard.Base.App;
using Saxonite.Net.Standard.Base.Bus;
using System;
@@ -119,6 +121,17 @@ namespace Saxonite.Net.Core.Web.Base.App
return value;
}
//-------------------------------------------------------------------
// Numeric and datetime formatting
//-------------------------------------------------------------------
public static String DateFormat_Default { get; } = "d-MMM-yyyy";
public static String DateWithWeekdayFormat_Default { get; } = "ddd d-MMM-yyyy";
public String FormatDate(DateTime value, Boolean includeWeekday = true)
{
String dateFormat = includeWeekday ? DateWithWeekdayFormat_Default : DateFormat_Default;
return DateUtil.Format(value, dateFormat);
}
//-------------------------------------------------------------------
// Specific phrase translation.
//-------------------------------------------------------------------
@@ -208,6 +221,11 @@ namespace Saxonite.Net.Core.Web.Base.App
// ToDo Region name localisation.
return region.Name;
}
public String GetRegionName(SysId regionId, String regionName)
{
// ToDo Region name localisation.
return regionName;
}
//-------------------------------------------------------------------
// Sport.
@@ -217,6 +235,11 @@ namespace Saxonite.Net.Core.Web.Base.App
// ToDo Sport name localisation.
return sport.Name;
}
public String GetSportName(SysId sportId, String sportName)
{
// ToDo Sport name localisation.
return sportName;
}
//-------------------------------------------------------------------
}