Exemplo n.º 1
0
        public IEnumerable <TimeEventSpanJSON> GetTimeEventSpanList(int id)
        {
            SQLiteController.Init();
            var events = SQLiteController.SelectEvent(id);
            IEnumerable <TimeEventSpanJSON> retEvents = events.Select(x => new TimeEventSpanJSON
            {
                UserId    = x.UserId,
                Color     = x.Color,
                EventName = x.EventName,
                UserName  = x.UserName,
                Begin     = SQLiteController.DateTimeToString(x.Begin),
                End       = SQLiteController.DateTimeToString(x.End)
            });

            return(retEvents);
        }