//revisar public EntityWorkforce GetbyWfid(int Id) { var data = base.DataContext.Workforce.Where(p => p.PK_WorkforceID == Id); if (data.Count() == 1) { return(FactoryWorkforce.Get(data.Single())); } else { return(null); } }
public List <EntityWorkforce> GetAll() { return(FactoryWorkforce.GetList(base.DataContext.Workforce.ToList())); }
public List <EntityWorkforce> GetActives() { return(FactoryWorkforce.GetList(base.DataContext.Workforce.Where(p => p.Status == true).ToList())); }