public static Group ConvertAddGroupRequestToUser(AddGroupRequest request) { Group newgroups = new Group(); newgroups.Name = request.Name; newgroups.Image = request.Image; return(newgroups); }
public static GroupsDto ConvertToSingleDto(Group groups) { GroupsDto newgroups = new GroupsDto(); newgroups.Id = groups.Id; newgroups.Name = groups.Name; return(newgroups); }
public static Group ConvertToGroups(GroupsDto groups) { Group newgroups = new Group(); newgroups.Id = groups.Id; newgroups.Name = groups.Name; newgroups.Image = groups.Image; newgroups.Events = EventsConvertion.convertToListEvent(groups.Events); return(newgroups); }
public static GroupsDto ConvertToDto(Group groups) { GroupsDto newgroups = new GroupsDto(); newgroups.Id = groups.Id; newgroups.Name = groups.Name; newgroups.Image = groups.Image; newgroups.Events = EventsConvertion.ConvertToDtoList(groups.Events.ToList()); return(newgroups); }