public int GetMinWidth(ImageType type) { var option = ImageOptions.FirstOrDefault(i => i.Type == type); return(option == null ? 0 : option.MinWidth); }
public int GetLimit(ImageType type) { var option = ImageOptions.FirstOrDefault(i => i.Type == type); return(option == null ? 1 : option.Limit); }