public SessionDrillContainer(TrainingSession trainingSession, List <DrillDto> drills) { Id = trainingSession.Id; Name = trainingSession.Name; DateCreated = trainingSession.DateCreated; ObjectHistoryKey = ObjectHistoryHelper.GetObjectHistoryFullNameAndId(typeof(TrainingSession), Id.ToString()); Drills = drills; }
public override void Process(TagHelperContext context, TagHelperOutput output) { output.TagName = "a"; output.Attributes.SetAttribute("href", $"/arragro-object-history/{ObjectHistoryHelper.GetObjectHistoryFullNameAndId(Type, Id)}"); output.Content.SetContent(LinkText); }