Beispiel #1
0
        private Category CreateCategory(CreateCategoryCommand command)
        {
            var surfaceCode = Enum.Parse <SurfaceTypeCode>(command.SurfaceType, true);

            return(_factory.Create(
                       command.Name,
                       command.Description,
                       new SurfaceType(surfaceCode)));
        }