Ejemplo n.º 1
0
        public List <EmployeeDTO> SelectEmployee()
        {
            List <EmployeeDTO> emp = new List <EmployeeDTO>();

            using (DBlayer dblayer = new DBlayer())
            {
                SqlCommand cmd = new SqlCommand("sp_SelectEmployee");
                cmd.CommandType = CommandType.StoredProcedure;
                emp             = dblayer.GetEntityList <EmployeeDTO>(cmd);
            }
            return(emp);
        }
Ejemplo n.º 2
0
        public List <ClassName> ClassName()
        {
            List <ClassName> ClassName = new List <ClassName>();

            using (DBlayer dblayer = new DBlayer())
            {
                SqlCommand cmd = new SqlCommand("sp_ClassName");
                cmd.CommandType = CommandType.StoredProcedure;
                ClassName       = dblayer.GetEntityList <ClassName>(cmd);
            }
            return(ClassName);
        }
Ejemplo n.º 3
0
        public List <SectionDTO> SelectSection()
        {
            List <SectionDTO> sectiondto = new List <SectionDTO>();

            using (DBlayer dblayer = new DBlayer())
            {
                SqlCommand cmd = new SqlCommand("sp_SelectSection");
                cmd.CommandType = CommandType.StoredProcedure;
                sectiondto      = dblayer.GetEntityList <SectionDTO>(cmd);
            }
            return(sectiondto);
        }
Ejemplo n.º 4
0
        public List <StaffAllocationDTO> SelectStaffAllocationt()
        {
            List <StaffAllocationDTO> sad = new List <StaffAllocationDTO>();

            using (DBlayer dblayer = new DBlayer())
            {
                SqlCommand cmd = new SqlCommand("sp_SelectStaff");
                cmd.CommandType = CommandType.StoredProcedure;
                sad             = dblayer.GetEntityList <StaffAllocationDTO>(cmd);
            }
            return(sad);
        }
Ejemplo n.º 5
0
        public List <RoleName> RoleName()
        {
            List <RoleName> r = new List <RoleName>();

            using (DBlayer dblayer = new DBlayer())
            {
                SqlCommand cmd = new SqlCommand("sp_RoleName");
                cmd.CommandType = CommandType.StoredProcedure;
                r = dblayer.GetEntityList <RoleName>(cmd);
            }
            return(r);
        }
Ejemplo n.º 6
0
        public List <DepartmentName> SelectDepartmentName()
        {
            List <DepartmentName> deptName = new List <DepartmentName>();

            using (DBlayer dblayer = new DBlayer())
            {
                SqlCommand cmd = new SqlCommand("sp_DepartmentName");
                cmd.CommandType = CommandType.StoredProcedure;
                deptName        = dblayer.GetEntityList <DepartmentName>(cmd);
            }
            return(deptName);
        }
Ejemplo n.º 7
0
        public List <Hod_AllocationDTO> SelectHod_Allocation()
        {
            List <Hod_AllocationDTO> hoda = new List <Hod_AllocationDTO>();

            using (DBlayer dblayer = new DBlayer())
            {
                SqlCommand cmd = new SqlCommand("sp_SelectHod_Allocation");
                cmd.CommandType = CommandType.StoredProcedure;
                hoda            = dblayer.GetEntityList <Hod_AllocationDTO>(cmd);
            }
            return(hoda);
        }
Ejemplo n.º 8
0
        public List <College1DTO> SelectCollegeName()
        {
            List <College1DTO> clg1 = new List <College1DTO>();

            using (DBlayer dblayer = new DBlayer())
            {
                SqlCommand cmd = new SqlCommand("sp_SelectCollegeName");
                cmd.CommandType = CommandType.StoredProcedure;
                clg1            = dblayer.GetEntityList <College1DTO>(cmd);
            }
            return(clg1);
        }
Ejemplo n.º 9
0
        public List <UploadFileDTO> SelectUploadFile()
        {
            List <UploadFileDTO> up = new List <UploadFileDTO>();

            using (DBlayer dblayer = new DBlayer())
            {
                SqlCommand cmd = new SqlCommand("sp_SelectUploadFile");
                cmd.CommandType = CommandType.StoredProcedure;
                up = dblayer.GetEntityList <UploadFileDTO>(cmd);
            }
            return(up);
        }
Ejemplo n.º 10
0
        public List <SectionName> SectionName()
        {
            List <SectionName> dept = new List <SectionName>();

            using (DBlayer dblayer = new DBlayer())
            {
                SqlCommand cmd = new SqlCommand("sp_SectionName");
                cmd.CommandType = CommandType.StoredProcedure;
                dept            = dblayer.GetEntityList <SectionName>(cmd);
            }
            return(dept);
        }
Ejemplo n.º 11
0
        public List <DepartmentDTO> SelectDepartment()
        {
            List <DepartmentDTO> dept = new List <DepartmentDTO>();

            using (DBlayer dblayer = new DBlayer())
            {
                SqlCommand cmd = new SqlCommand("sp_SelectDepartment");
                cmd.CommandType = CommandType.StoredProcedure;
                dept            = dblayer.GetEntityList <DepartmentDTO>(cmd);
            }
            return(dept);
        }
Ejemplo n.º 12
0
        public List <UniverSityMaster> SelectUniverSity()
        {
            List <UniverSityMaster> uni = new List <UniverSityMaster>();

            using (DBlayer dblayer = new DBlayer())
            {
                SqlCommand cmd = new SqlCommand("sp_SelectUniverSity");
                cmd.CommandType = CommandType.StoredProcedure;
                uni             = dblayer.GetEntityList <UniverSityMaster>(cmd);
            }
            return(uni);
        }
Ejemplo n.º 13
0
        public List <EventDetailsDTO> SelectEvent()
        {
            List <EventDetailsDTO> even = new List <EventDetailsDTO>();

            using (DBlayer dblayer = new DBlayer())
            {
                SqlCommand cmd = new SqlCommand("sp_SelectEvent");
                cmd.CommandType = CommandType.StoredProcedure;
                even            = dblayer.GetEntityList <EventDetailsDTO>(cmd);
            }
            return(even);
        }
Ejemplo n.º 14
0
        public List <CountryMaster> SelectCountry()
        {
            List <CountryMaster> Country = new List <CountryMaster>();

            using (DBlayer dblayer = new DBlayer())
            {
                SqlCommand cmd = new SqlCommand("sp_SelectCountry");
                cmd.CommandType = CommandType.StoredProcedure;
                Country         = dblayer.GetEntityList <CountryMaster>(cmd);
            }
            return(Country);
        }
Ejemplo n.º 15
0
        public List <StateMaster> SelectState()
        {
            List <StateMaster> state = new List <StateMaster>();

            using (DBlayer dblayer = new DBlayer())
            {
                SqlCommand cmd = new SqlCommand("sp_SelectState");
                cmd.CommandType = CommandType.StoredProcedure;
                state           = dblayer.GetEntityList <StateMaster>(cmd);
            }
            return(state);
        }
Ejemplo n.º 16
0
        public List <Employee> Employee()
        {
            List <Employee> Employee = new List <Employee>();

            using (DBlayer dblayer = new DBlayer())
            {
                SqlCommand cmd = new SqlCommand("sp_Employee");
                cmd.CommandType = CommandType.StoredProcedure;
                Employee        = dblayer.GetEntityList <Employee>(cmd);
            }
            return(Employee);
        }
Ejemplo n.º 17
0
        public List <ClassDTO> SelectClass()
        {
            List <ClassDTO> cls = new List <ClassDTO>();

            using (DBlayer dblayer = new DBlayer())
            {
                SqlCommand cmd = new SqlCommand("sp_SelectClass");
                cmd.CommandType = CommandType.StoredProcedure;
                cls             = dblayer.GetEntityList <ClassDTO>(cmd);
            }
            return(cls);
        }
Ejemplo n.º 18
0
        public List <HODApprovalDTO> SelectHODApproval(SelectHODApprovalProcDTO obj)
        {
            List <HODApprovalDTO> hod = new List <HODApprovalDTO>();

            using (DBlayer dblayer = new DBlayer())
            {
                SqlCommand cmd = new SqlCommand("sp_SelectHODApproval");
                cmd.CommandType = CommandType.StoredProcedure;
                cmd.Parameters.AddWithValue("@p_EventId", obj.EventId);
                cmd.Parameters.AddWithValue("@p_StudentId", obj.StudentId);
                hod = dblayer.GetEntityList <HODApprovalDTO>(cmd);
            }
            return(hod);
        }
Ejemplo n.º 19
0
        public List <SelectCommonT_LoginDTO> SelectCommonT_Login(SelectCommonT_LoginProcDTO obj)
        {
            List <SelectCommonT_LoginDTO> commont_logindto = new List <SelectCommonT_LoginDTO>();

            using (DBlayer dblayer = new DBlayer())
            {
                SqlCommand cmd = new SqlCommand("sp_SelectCommonT_Login");
                cmd.CommandType = CommandType.StoredProcedure;
                cmd.Parameters.AddWithValue("@p_UserName", obj.UserName);
                cmd.Parameters.AddWithValue("@p_PassWord", obj.PassWord);
                commont_logindto = dblayer.GetEntityList <SelectCommonT_LoginDTO>(cmd);
            }
            return(commont_logindto);
        }