private void WriteCategoryToHeadline(StatisticCategory cat, TextWriter writer) { foreach (var statName in cat.Items) { writer.Write(statName); writer.Write(";"); } }
private void WriteStatValues(CharacterSnapshot snap, StatisticCategory cat, TextWriter writer) { foreach (var statName in cat.Items) { int statVal = snap.GetStatisticValue(cat, statName); writer.Write(statVal); writer.Write(";"); } }
public static void UpdateStatisticCategory(this StatisticCategory statisticCategory, StatisticCategoryViewModel statisticCategoryVm) { statisticCategory.ID = statisticCategoryVm.ID; statisticCategory.Name = statisticCategoryVm.Name; statisticCategory.Alias = statisticCategoryVm.Alias; statisticCategory.Description = statisticCategoryVm.Description; statisticCategory.ParentID = statisticCategoryVm.ParentID; statisticCategory.HomeFlag = statisticCategoryVm.HomeFlag; statisticCategory.DisplayOrder = statisticCategoryVm.DisplayOrder; statisticCategory.CreatedDate = statisticCategoryVm.CreatedDate; statisticCategory.CreatedBy = statisticCategoryVm.CreatedBy; statisticCategory.UpdatedBy = statisticCategoryVm.UpdatedBy; statisticCategory.UpdatedDate = statisticCategoryVm.UpdatedDate; statisticCategory.MetaKeyword = statisticCategoryVm.MetaKeyword; statisticCategory.MetaDescription = statisticCategoryVm.MetaDescription; statisticCategory.Status = statisticCategoryVm.Status; }
public void Update(StatisticCategory statisticCategory) { _statisticCategoryRepository.Update(statisticCategory); }
public void Add(StatisticCategory statisticCategory) { _statisticCategoryRepository.Add(statisticCategory); }