//המרה לDB public static ColorForFurniture ConvertToColorForFurnitur(ColorForFurnitureDto c) { ColorForFurniture newColorForFurniture = new ColorForFurniture(); newColorForFurniture.ColorForFurnitureId = c.ColorForFurnitureId; newColorForFurniture.ColorsId = c.ColorsId; return(newColorForFurniture); }
//המרה מDB public static ColorForFurnitureDto ConvertToDto(ColorForFurniture c) { ColorForFurnitureDto newColorForFurniture = new ColorForFurnitureDto(); newColorForFurniture.ColorForFurnitureId = c.ColorForFurnitureId; newColorForFurniture.ColorsId = c.ColorsId; return(newColorForFurniture); }