public ItemCategory(int id, I18NString name, ItemCategoryType type, List <ItemType> itemTypes) { Id = id; Name = name; Type = type; ItemTypes = itemTypes; }
public ItemCategory FindByType(ItemCategoryType type) { return(LoadData().Where(data => data.Type == type).Select(this.Mapper.ToEntity).FirstOrDefault()); }