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