public Task Add(ITodoTask task) { _context.TodoTasks.Add((TodoTask)task); _context.Serialize(); return(Task.CompletedTask); }
public Task Add(ICalendarEvent cEvent) { _context.CalendarEvents.Add((CalendarEvent)cEvent); _context.Serialize(); return(Task.CompletedTask); }