示例#1
0
 internal static C.Event ToClient(this G.Event events)
 {
     return(new C.Event(
                events.Id,
                events.Name,
                events.Description,
                events.City,
                events.Street,
                events.Number,
                events.NumberBox,
                events.ZipCode,
                events.Country,
                events.StartDate,
                events.EndDate,
                events.FullDay,
                events.EmployeeId));
 }
 internal static C.Event ToClient(this G.Event entity)
 {
     return(new C.Event(entity.Id, entity.CreatorId, entity.DepartmentId,
                        entity.Name, entity.Description, entity.Address, entity.StartDate, entity.EndDate,
                        entity.CreationDate, entity.Subscribed, entity.Open, entity.Cancelled));
 }