Skip to content

Commit fffcb60

Browse files
chore(scheduler): id can be int, no need for guid
1 parent 005166a commit fffcb60

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/scheduler/edit-appointments.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ The example below shows the signature of the event handlers so you can copy the
158158
{
159159
new SchedulerAppointment
160160
{
161-
Id = Guid.NewGuid(),
161+
Id = 1,
162162
Title = "Board meeting",
163163
Description = "Q4 is coming to a close, review the details.",
164164
Start = new DateTime(2019, 12, 5, 10, 00, 0),
@@ -167,7 +167,7 @@ The example below shows the signature of the event handlers so you can copy the
167167
168168
new SchedulerAppointment
169169
{
170-
Id = Guid.NewGuid(),
170+
Id = 2,
171171
Title = "Vet visit",
172172
Description = "The cat needs vaccinations and her teeth checked.",
173173
Start = new DateTime(2019, 12, 2, 11, 30, 0),
@@ -176,7 +176,7 @@ The example below shows the signature of the event handlers so you can copy the
176176
177177
new SchedulerAppointment
178178
{
179-
Id = Guid.NewGuid(),
179+
Id = 3,
180180
Title = "Planning meeting",
181181
Description = "Kick off the new project.",
182182
Start = new DateTime(2019, 12, 6, 9, 30, 0),
@@ -185,7 +185,7 @@ The example below shows the signature of the event handlers so you can copy the
185185
186186
new SchedulerAppointment
187187
{
188-
Id = Guid.NewGuid(),
188+
Id = 4,
189189
Title = "Trip to Hawaii",
190190
Description = "An unforgettable holiday!",
191191
IsAllDay = true,
@@ -196,7 +196,7 @@ The example below shows the signature of the event handlers so you can copy the
196196
197197
public class SchedulerAppointment
198198
{
199-
public Guid Id { get; set; }
199+
public int Id { get; set; }
200200
public string Title { get; set; }
201201
public string Description { get; set; }
202202
public DateTime Start { get; set; }

0 commit comments

Comments
 (0)