Пример #1
0
 public static Event ConvertToEvent(EventCrDto ev)
 {
     return(new Event
     {
         channel_id = ev.ChannelId,
         improtance_id = ev.ImportanceId,
         creation_time = DateTime.Now,
         description = ev.Description,
         title = ev.Title,
         event_time = ev.EventTime
     });
 }
Пример #2
0
 public CrResult <EventDto> CreateEvent(EventCrDto ev)
 {
     return(new EventManager().CreateEvent(GetUser().user_id, ev));
 }