yavsc/Yavsc/Helpers/EventHelpers.cs

26 lines
696 B
C#

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

using Microsoft.Extensions.Localization;
using Yavsc.Model;
using Yavsc.Models.Booking;
using Yavsc.Models.Messaging;
namespace Yavsc.Helpers
{
public static class EventHelpers
{
public static BookQueryEvent CreateEvent(this BookQuery query,
IStringLocalizer SR)
{
var yaev = new BookQueryEvent
{
Client = new ClientProviderInfo { UserName = query.Client.UserName , UserId = query.ClientId } ,
Previsional = query.Previsional,
EventDate = query.EventDate,
Location = query.Location,
Id = query.Id
};
return yaev;
}
}
}