public override List <ITodo> LoadTodos(Guid userId, DateTime utcStartDate, DateTime utcEndDate) { if (!String.IsNullOrEmpty(iCalUrl)) { try { var cal = ICalendar.GetFromUrl(iCalUrl, this.Id); return(cal.LoadTodos(userId, utcStartDate, utcEndDate)); } catch { return(new List <ITodo>()); } } return(DataProvider.LoadTodos(Convert.ToInt32(this.Id), userId, TenantId, utcStartDate, utcEndDate) .Cast <ITodo>() .ToList()); }