Exemplo n.º 1
0
 public static IList<Model.Log> GetTaskLogs(int tid, Expression<Func<Model.Log, bool>> expression)
 {
     if (tid <= 0)
     {
         return null;
     }
     Expression<Func<Model.Log, bool>> where = m => m.Task.Id == tid;
     if (expression != null)
     {
         where = where.And(expression);
     }
     ILog logDal = new LogDal(EFContext.Instance);
     return logDal.GetList(where);
 }
Exemplo n.º 2
0
 public static Model.Log GetLog(int tid, Model.LogAction action, int ex)
 {
     ILog logDal = new LogDal(EFContext.Instance);
     return logDal.Get(tid, action, ex);
 }
Exemplo n.º 3
0
 public static bool AddLog(Model.Log log)
 {
     ILog logDal = new LogDal(EFContext.Instance);
     return logDal.Add(log);
 }