private Category CreateCategory(CreateCategoryCommand command) { var surfaceCode = Enum.Parse <SurfaceTypeCode>(command.SurfaceType, true); return(_factory.Create( command.Name, command.Description, new SurfaceType(surfaceCode))); }
private Category CreateCategory(CreateCategoryCommand command) { var surfaceCode = Enum.Parse <SurfaceTypeCode>(command.SurfaceType, true); return(_factory.Create( command.Name, command.Description, new SurfaceType(surfaceCode))); }