コード例 #1
0
        public static Group ConvertAddGroupRequestToUser(AddGroupRequest request)
        {
            Group newgroups = new Group();

            newgroups.Name  = request.Name;
            newgroups.Image = request.Image;
            return(newgroups);
        }
コード例 #2
0
        public static GroupsDto ConvertToSingleDto(Group groups)
        {
            GroupsDto newgroups = new GroupsDto();

            newgroups.Id   = groups.Id;
            newgroups.Name = groups.Name;
            return(newgroups);
        }
コード例 #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);
        }
コード例 #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);
        }