@{ var currTime = MajorSlotTemplate((context as TemplateArgs).Date); var nextTime = Convert.ToInt32(currTime) + 4;
@(currTime + "h-" + nextTime + "h")
}
@code{ public static string MajorSlotTemplate(DateTime date) { return date.ToString("hh", frFr); } public string GetDateHeaderText(DateTime date) { if (myView == View.TimelineWeek){ return date.ToString("dddd, dd MMM", frFr); }else{ return date.ToString("dd", frFr); } } public class AppointmentData { public int Id { get; set; } public string Subject { get; set; } public string Location { get; set; } public DateTime StartTime { get; set; } public DateTime EndTime { get; set; } public string Description { get; set; } public bool IsAllDay { get; set; } public bool IsReadonly { get; set; } public string RecurrenceRule { get; set; } public string RecurrenceException { get; set; } public Nullable RecurrenceID { get; set; } public int Status { get; set; } public int Priority { get; set; } public int IdSalleExamenSys { get; set; } public int IdTypeConsultation { get; set; } public int IdRessource { get; set; } public int IdGrappeSys { get; set; } public string EventType { get; set; } public DateTime DateCreation { get; set; } public DateTime DateModification { get; set; } } }