示例#1
0
        internal Workshop ConvertWorkshop(WorkshopDto workshopDto)
        {
            var workshop = new Workshop()
            {
                Name        = workshopDto.Name,
                Description = workshopDto.Description
            };

            return(workshop);
        }
示例#2
0
        internal WorkshopDto ConvertWorkshop(Workshop workshop)
        {
            var workshopDto = new WorkshopDto()
            {
                Id              = workshop.Id,
                Name            = workshop.Name,
                Description     = workshop.Description,
                EquipmentsCount = workshop.Equipments.Count
            };

            return(workshopDto);
        }