This commit is contained in:
parent
46f5c107b8
commit
fa34ed249b
233 changed files with 4000 additions and 1396 deletions
|
|
@ -1,24 +0,0 @@
|
|||
using Microsoft.Extensions.Localization;
|
||||
using Yavsc.Models.Booking;
|
||||
using Yavsc.Models.Messaging;
|
||||
|
||||
namespace Yavsc.Helpers
|
||||
{
|
||||
public static class EventHelpers
|
||||
{
|
||||
public static YaEvent CreateEvent(this BookQuery query,
|
||||
IStringLocalizer SR)
|
||||
{
|
||||
var yaev = new YaEvent
|
||||
{
|
||||
Title = query.Client.UserName + SR["is asking you for a date"],
|
||||
Comment = (query.Previsional != null) ?
|
||||
SR["Deposit"] + string.Format(": {0:00}",
|
||||
query.Previsional) : SR["No deposit."],
|
||||
Description = SR["Address"] + ": " + query.Location.Address + "\n" +
|
||||
SR["Date"] + ": " + query.EventDate.ToString("D")
|
||||
};
|
||||
return yaev;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue