Exemple #1
0
 public static bool CheckEcpInUse(string ecp)
 {
     ITask taskProvider = new TaskDal(EFContext.Instance);
     return taskProvider.Count(m=>m.Ecp==ecp)>0;
 }
Exemple #2
0
 public static int Count(Expression<Func<Task, bool>> expression)
 {
     ITask taskProvider = new TaskDal(EFContext.Instance);
     return taskProvider.Count(expression);
 }
Exemple #3
0
 public static bool CheckCodeInUse(string code)
 {
     ITask taskProvider = new TaskDal(EFContext.Instance);
     return taskProvider.Count(m => m.Code == code) > 0;
 }