public static DataTable GetAllByUserID(Guid userID)
        {
            //DataTable dt = DBL.ExecuteQuery($"select * from Project inner join UserProject on Project.ProjectId=UserProject.FK_ProjectId inner join aspnet_Users on aspnet_Users.UserId=UserProject.FK_ProjectId where aspnet_Users.UserId = {userID}");
            DataTable dt = DBL.ExecuteQuery($"select * from Project where FK_UserId='{userID}'");

            return(dt);
        }
        public static DataTable GetByAwardId(string Id)
        {
            DataTable dt = DBL.ExecuteQuery("select * from Education where Education.EducationId = " + Id);


            return(dt);
        }
        public static DataTable InsertCertNameDate(string CertificateName, string CertificateDate, Guid FK_UserId)
        {
            string    sss = $"insert into Certificate(CertificateName , CertificateDate,FK_UserId) values('{CertificateName}', '{ CertificateDate }','{ FK_UserId }' )";
            DataTable dt  = DBL.ExecuteQuery(sss);

            return(dt);
        }
Example #4
0
        public static DataTable GetByAwardId(string Id)
        {
            DataTable dt = DBL.ExecuteQuery("select * from Award where Award.AwardId = " + Id);


            return(dt);
        }
Example #5
0
        public static DataTable GetByUserId(Guid Id)
        {
            DataTable dt = DBL.ExecuteQuery("select * from Award where Award.FK_UserId = '" + Id + "' ");


            return(dt);
        }
        public static DataTable GetByCertificateId(int CertificateId)
        {
            DataTable dt = DBL.ExecuteQuery("select * from Certificate where Certificate.CertificateId = " + CertificateId);

            return(dt);
        }
        public static DataTable GetAll()
        {
            DataTable dt = DBL.ExecuteQuery("select * from Certificate");

            return(dt);
        }
        public static DataTable GetByVolExpID(int volExpID)
        {
            DataTable dt = DBL.ExecuteQuery($"select * from VolExperience where Id='{volExpID}'");

            return(dt);
        }
        public static DataTable GetByUserID(Guid userID)
        {
            DataTable dt = DBL.ExecuteQuery($"select * from VolExperience where FK_UserId='{userID}'");

            return(dt);
        }
        public static DataTable GetByFK_UserId_(Guid FK_UserId)
        {
            DataTable dt = DBL.ExecuteQuery($"select * from  Certificate where FK_UserId= '{FK_UserId}'");

            return(dt);
        }
Example #11
0
        public static DataTable GetAllTableMsg()
        {
            DataTable dt = DBL.ExecuteQuery("select * from Message");

            return(dt);
        }
Example #12
0
        public static DataTable AddMsg(Guid FK_FromId, Guid FK_ToId, string msg, string date)
        {
            DataTable dt = DBL.ExecuteQuery($"insert into  Message (FK_FromId,FK_ToId,[Text],[Date]) values ('{FK_FromId}','{FK_ToId}','{msg}','{date}')");

            return(dt);
        }
        public static DataTable deleteCertificateName(string CertificateName)
        {
            DataTable dt = DBL.ExecuteQuery("delete  Certificate where CertificateName= " + CertificateName);

            return(dt);
        }
Example #14
0
        public static DataTable GetMsgByFKToId(int Fk_FromId, int FK_ToId)
        {
            DataTable dt = DBL.ExecuteQuery("select Text from Message where Fk_FromId and FK_ToId='" + Fk_FromId + "', " + FK_ToId + ")");

            return(dt);
        }
Example #15
0
        public static DataTable GetMsgBySelection(int FK_FromId, int FK_ToId)
        {
            DataTable dt = DBL.ExecuteQuery("select Distinct  UserName , Text,Date from aspnet_Users join Message on UserId = FK_FromId or UserId = FK_ToId='" + FK_FromId + "', " + FK_ToId + ")");

            return(dt);
        }
Example #16
0
        public static DataTable deleteMessage(string MessageId)
        {
            DataTable dt = DBL.ExecuteQuery("delete  Message where MessageId= " + MessageId);

            return(dt);
        }
Example #17
0
        public static DataTable GetAllUsers()
        {
            DataTable dt = DBL.ExecuteQuery("select UserName ,UserId from aspnet_Users");

            return(dt);
        }
Example #18
0
        public static DataTable GetAllMsgBw(Guid UserId, Guid otherId)
        {
            DataTable dt = DBL.ExecuteQuery($"select UserName,Text ,Date from Message join aspnet_Users on Message.FK_FromId = aspnet_Users.UserId where(FK_FromId = '{UserId}' and FK_ToId = '{otherId}') or (FK_FromId = '{otherId}' and FK_ToId = '{UserId}')");

            return(dt);
        }
        public static DataTable GetByCertificateName(string CertificateName)
        {
            DataTable dt = DBL.ExecuteQuery("select * from Certificate where Certificate.CertificateName = " + CertificateName);

            return(dt);
        }
        public static DataTable GetAllCourse()
        {
            DataTable dt = DBL.ExecuteQuery("select * from Course");

            return(dt);
        }
        public static DataTable GetByFK_UserId(Guid FK_UserId)
        {
            DataTable dt = DBL.ExecuteQuery("select UserId,CertificateId,CertificateName,CONVERT(Date,CertificateDate) AS Date  from aspnet_Users join Certificate on aspnet_Users.UserId =Certificate.FK_UserId= " + FK_UserId);

            return(dt);
        }
        public static DataTable GetAllCourseById(int CourseId)
        {
            DataTable dt = DBL.ExecuteQuery("select * from Course where Course.CourseId=" + CourseId);

            return(dt);
        }
Example #23
0
        // select user experience by id
        public static DataTable GetAllUserExperienceById(Guid UserId)
        {
            DataTable dt = DBL.ExecuteQuery("select * from UserWorkExperience where FK_UserId='" + UserId + "' ");

            return(dt);
        }
Example #24
0
        public static bool CheckNameInserted(string countryName)
        {
            DataTable dt = DBL.ExecuteQuery($"select count(Name) as NCount from Country where Name = '{countryName}'");

            return(Convert.ToInt32(dt.Rows[0]["NCount"]) > 0);
        }
        public static DataTable deleteCertificate(int CertificateId)
        {
            DataTable dt = DBL.ExecuteQuery("delete  Certificate where CertificateId= " + CertificateId);

            return(dt);
        }
Example #26
0
        public static DataTable GetAll()
        {
            DataTable dt = DBL.ExecuteQuery("select * from SkillLevel");

            return(dt);
        }
        public static DataTable GetAllCourseAssocWith()
        {
            DataTable dt = DBL.ExecuteQuery("select CourseId,CourseAssociatedWith from Course");

            return(dt);
        }
Example #28
0
        public static DataTable GetById(string Id)
        {
            DataTable dt = DBL.ExecuteQuery($"select * from SkillLevel where SkillLevelId = {Id}");

            return(dt);
        }
        public static DataTable GetAllUserCourseById(Guid UserId)
        {
            DataTable dt = DBL.ExecuteQuery("select Course.CourseName,aspnet_Users.UserId from UserCourse left join aspnet_Users on UserId = FK_UserId left join Course on CourseId =FK_CourseId  where UserId =" + UserId);

            return(dt);
        }
        public static DataTable GetAll()
        {
            DataTable dt = DBL.ExecuteQuery("select * from VolExperience");

            return(dt);
        }