C# Class web_calendar.Mappers.Mapper

Exibir arquivo Open project: VasiliySobol/WebCalendar

Public Methods

Method Description
MapToCalendarFromCalendarVM ( CalendarViewModel calendar ) : Calendar
MapToCalendarViewModel ( Calendar calendar ) : CalendarViewModel
MapToCreateEventVM ( CalendarEvent calendarEvent, ICollection notificationType, ICollection repeatable, List emails ) : CreateEventViewModel
MapToDisplayEventVM ( CalendarEvent calendarEvent ) : DisplayEventViewModel
MapToEvent ( CreateEventViewModel eventVM ) : CalendarEvent
MapToNotificationSettingsViewModel ( NotificationType notificationType ) : NotificationSettingsViewModel
MapToNotificationType ( NotificationSettingsViewModel notificationSettingsVM ) : NotificationType
MapToNotificationTypes ( CreateEventViewModel eventVM ) : ICollection
MapToRepeatable ( RepeatableSettingsViewModel repeatableSettingsVM ) : Repeatable
MapToRepeatableSettingsViewModel ( Repeatable repeatable ) : RepeatableSettingsViewModel
MapToRepeatables ( CreateEventViewModel eventVM ) : ICollection

Method Details

MapToCalendarFromCalendarVM() public static method

public static MapToCalendarFromCalendarVM ( CalendarViewModel calendar ) : Calendar
calendar web_calendar.Models.CalendarViewModel
return ApplicationRepository.Models.Calendar

MapToCalendarViewModel() public static method

public static MapToCalendarViewModel ( Calendar calendar ) : CalendarViewModel
calendar ApplicationRepository.Models.Calendar
return web_calendar.Models.CalendarViewModel

MapToCreateEventVM() public static method

public static MapToCreateEventVM ( CalendarEvent calendarEvent, ICollection notificationType, ICollection repeatable, List emails ) : CreateEventViewModel
calendarEvent ApplicationRepository.Models.CalendarEvent
notificationType ICollection
repeatable ICollection
emails List
return web_calendar.Models.CreateEventViewModel

MapToDisplayEventVM() public static method

public static MapToDisplayEventVM ( CalendarEvent calendarEvent ) : DisplayEventViewModel
calendarEvent ApplicationRepository.Models.CalendarEvent
return web_calendar.Models.DisplayEventViewModel

MapToEvent() public static method

public static MapToEvent ( CreateEventViewModel eventVM ) : CalendarEvent
eventVM web_calendar.Models.CreateEventViewModel
return ApplicationRepository.Models.CalendarEvent

MapToNotificationSettingsViewModel() public static method

public static MapToNotificationSettingsViewModel ( NotificationType notificationType ) : NotificationSettingsViewModel
notificationType ApplicationRepository.Models.NotificationType
return web_calendar.Models.NotificationSettingsViewModel

MapToNotificationType() public static method

public static MapToNotificationType ( NotificationSettingsViewModel notificationSettingsVM ) : NotificationType
notificationSettingsVM web_calendar.Models.NotificationSettingsViewModel
return ApplicationRepository.Models.NotificationType

MapToNotificationTypes() public static method

public static MapToNotificationTypes ( CreateEventViewModel eventVM ) : ICollection
eventVM web_calendar.Models.CreateEventViewModel
return ICollection

MapToRepeatable() public static method

public static MapToRepeatable ( RepeatableSettingsViewModel repeatableSettingsVM ) : Repeatable
repeatableSettingsVM web_calendar.Models.RepeatableSettingsViewModel
return ApplicationRepository.Models.Repeatable

MapToRepeatableSettingsViewModel() public static method

public static MapToRepeatableSettingsViewModel ( Repeatable repeatable ) : RepeatableSettingsViewModel
repeatable ApplicationRepository.Models.Repeatable
return web_calendar.Models.RepeatableSettingsViewModel

MapToRepeatables() public static method

public static MapToRepeatables ( CreateEventViewModel eventVM ) : ICollection
eventVM web_calendar.Models.CreateEventViewModel
return ICollection