public List <LogInService> SearchShareLogUnRead(int Id) { List <LogInService> l = new List <LogInService>(); List <LogMessage> lm = lop.SendSharedLogUnRead(Id); foreach (LogMessage lo in lm) { LogInService ll = new LogInService(); ll.LogId = (long)lo.LogId; ll.ShareUserId = (long)lo.ShareUserId; ll.TimeStamp = (long)lo.TimeStamp; ll.WriteUserId = (long)lo.UserId; l.Add(ll); } return(l); }
public bool SaveInLogListInService(LogInService log) { lop.InsertIntoEntity(log); return true; }
public bool SaveInLogListInService(LogInService log) { lop.InsertIntoEntity(log); return(true); }
public List<LogInService> SearchShareLogUnRead(int Id) { List<LogInService> l = new List<LogInService>(); List<LogMessage> lm = lop.SendSharedLogUnRead(Id); foreach (LogMessage lo in lm) { LogInService ll = new LogInService(); ll.LogId = (long)lo.LogId; ll.ShareUserId = (long)lo.ShareUserId; ll.TimeStamp = (long)lo.TimeStamp; ll.WriteUserId = (long)lo.UserId; l.Add(ll); } return l; }