Ejemplo n.º 1
0
        public Boolean InsertEmployee(EmployeeEntity EmployeeObj)
        {
            Boolean Flag = false;

            try
            {
                ORD.EmployeeDBDataContext DC = new ORD.EmployeeDBDataContext();

                DC.SpEmployee(EmployeeObj.FirstName, EmployeeObj.LastName, EmployeeObj.DOB, "Insert");

                Flag = true;
            }
            catch (Exception ex)
            {
                throw;
            }

            return(Flag);
        }
Ejemplo n.º 2
0
        public IEnumerable <ORD.SpEmployeeResult> GetEmployeeData()
        {
            ORD.EmployeeDBDataContext DC = new ORD.EmployeeDBDataContext();

            return(DC.SpEmployee(null, null, null, "Select").AsEnumerable <ORD.SpEmployeeResult>());
        }