public int InsertIntoScheduleEntity(ScheduleInService l)
        {
            ScheduleMessage schMess = new ScheduleMessage();

            schMess.ScheduleID = l.ScheduleId;
            schMess.ShareUserID = l.ShareUserId;
            schMess.UserID = l.WriteUserId;
            schMess.TimeStamp = l.TimeStamp;
            schMess.State = 0;
            schMess.IsRead = 0;
            context.ScheduleMessages.Add(schMess);
            context.SaveChanges();
            return schMess.Id;
        }
        public int InsertIntoScheduleEntity(ScheduleInService l)
        {
            ScheduleMessage schMess = new ScheduleMessage();

            schMess.ScheduleID  = l.ScheduleId;
            schMess.ShareUserID = l.ShareUserId;
            schMess.UserID      = l.WriteUserId;
            schMess.TimeStamp   = l.TimeStamp;
            schMess.State       = 0;
            schMess.IsRead      = 0;
            context.ScheduleMessages.Add(schMess);
            context.SaveChanges();
            return(int.Parse(schMess.Id.ToString()));
        }