コード例 #1
0
        public List <employedCompositeType> getAllEmployed()
        {
            List <employedCompositeType> lst = new List <employedCompositeType>();
            Employed et = new Employed();

            lst = et.getAll();
            return(lst);
        }
コード例 #2
0
        public bool ExistEmployed(int iNumEmp, string sMail)
        {
            var chocorroles = new Employed();
            var swap        = chocorroles.getAll();
            var qbo         = (from s in swap where s.iNumber.Equals(iNumEmp) || s.sEMail.Equals(sMail) select s).Count();

            if (qbo < 1)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }