Exemplo n.º 1
0
        public static Group ConvertAddGroupRequestToUser(AddGroupRequest request)
        {
            Group newgroups = new Group();

            newgroups.Name  = request.Name;
            newgroups.Image = request.Image;
            return(newgroups);
        }
Exemplo n.º 2
0
        public static GroupsDto ConvertToSingleDto(Group groups)
        {
            GroupsDto newgroups = new GroupsDto();

            newgroups.Id   = groups.Id;
            newgroups.Name = groups.Name;
            return(newgroups);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }