public static EventsKind ConvertToEventsKind(EventsKindDto EventsKind) { EventsKind newEventsKInd = new EventsKind(); newEventsKInd.Id = EventsKind.Id; newEventsKInd.Name = EventsKind.Name; //newEventsKInd.Events = EventsConvertion.convertToListEvent(EventsKind.Events); return(newEventsKInd); }
public static EventsKindDto ConvertToDto(EventsKind EventsKind) { EventsKindDto newEventsKInd = new EventsKindDto(); newEventsKInd.Id = EventsKind.Id; newEventsKInd.Name = EventsKind.Name; // newEventsKInd.Events= EventsConvertion.ConvertToDtoList(EventsKind.Events.ToList()); return(newEventsKInd); }