コード例 #1
0
        //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);
            }
        }
コード例 #2
0
 public List <EntityWorkforce> GetAll()
 {
     return(FactoryWorkforce.GetList(base.DataContext.Workforce.ToList()));
 }
コード例 #3
0
 public List <EntityWorkforce> GetActives()
 {
     return(FactoryWorkforce.GetList(base.DataContext.Workforce.Where(p => p.Status == true).ToList()));
 }