예제 #1
0
 public void SetUserWeightTech(string pUserId, int pWeight)
 {
     using (touchdbEntities context = new touchdbEntities())
     {
         context.sp_User_TechRegister(Guid.Parse(pUserId), pWeight);
     }
 }
예제 #2
0
 public void DeleteUserEntertainment(string pUserId, int pGenreId)
 {
     using (touchdbEntities context = new touchdbEntities())
     {
         context.sp_User_EntertainmentDelete(Guid.Parse(pUserId), pGenreId);
     }
 }
예제 #3
0
 public void DeleteUser(string pUserId)
 {
     using (touchdbEntities context = new touchdbEntities())
     {
         context.sp_UserDelete(Guid.Parse(pUserId));
     }
 }
예제 #4
0
 public void FindAllMatch(string pUserId)
 {
     using (touchdbEntities context = new touchdbEntities())
     {
         context.sp_FindAllMatchForUser(Guid.Parse(pUserId));
     }
 }
예제 #5
0
 public List <sp_GetUserMatchs_Result> GetUserMatch(string pUserId)
 {
     using (touchdbEntities context = new touchdbEntities())
     {
         var pUserMatch = context.sp_GetUserMatchs(Guid.Parse(pUserId)).ToList();
         return(pUserMatch);
     }
 }
예제 #6
0
 public List <sp_UserSelect_Result> UserMasterSelect()
 {
     using (touchdbEntities context = new touchdbEntities())
     {
         var pRegisteredUsers = context.sp_UserSelect().ToList();
         return(pRegisteredUsers);
     }
 }
예제 #7
0
 public List <sp_FacultySelect_Result> FacultyMasterSelect(int pFacultyId)
 {
     using (touchdbEntities context = new touchdbEntities())
     {
         var pFacultyMaster = context.sp_FacultySelect(pFacultyId).ToList();
         return(pFacultyMaster);
     }
 }
예제 #8
0
 public List <sp_SportsSelect_Result> SportsMasterSelect(int pGenreId)
 {
     using (touchdbEntities context = new touchdbEntities())
     {
         var pSportMaster = context.sp_SportsSelect(pGenreId).ToList();
         return(pSportMaster);
     }
 }
예제 #9
0
 public List <sp_MusicSelect_Result> MusicMasterSelect(int pGenreId)
 {
     using (touchdbEntities context = new touchdbEntities())
     {
         var pMusicMaster = context.sp_MusicSelect(pGenreId).ToList();
         return(pMusicMaster);
     }
 }
예제 #10
0
 public List <sp_GetUserSportLikes_Result> GetUserSportLikes(string pUserId)
 {
     using (touchdbEntities context = new touchdbEntities())
     {
         var pUserGetUserSportLikes = context.sp_GetUserSportLikes(Guid.Parse(pUserId)).ToList();
         return(pUserGetUserSportLikes);
     }
 }
예제 #11
0
 public sp_UserUpdatePhoto_Result UpdateUserPhoto(string pUserId, string pImageUrl)
 {
     using (touchdbEntities context = new touchdbEntities())
     {
         var pUserPhoto = context.sp_UserUpdatePhoto(Guid.Parse(pUserId), pImageUrl).FirstOrDefault();
         return(pUserPhoto);
     }
 }
예제 #12
0
 public List <sp_EntertainmentSelect_Result> EntertainmentMasterSelect(int pGenreId)
 {
     using (touchdbEntities context = new touchdbEntities())
     {
         var pEnterMaster = context.sp_EntertainmentSelect(pGenreId).ToList();
         return(pEnterMaster);
     }
 }
예제 #13
0
 public sp_UserSelectPassword_Result GetUserPassword(Guid pUserId)
 {
     using (touchdbEntities context = new touchdbEntities())
     {
         var Password = context.sp_UserSelectPassword(pUserId).FirstOrDefault();
         return(Password);
     }
 }
예제 #14
0
 public sp_UserSelectByEmail_Result GetUserByEmail(string pEmail)
 {
     using (touchdbEntities context = new touchdbEntities())
     {
         var pUser = context.sp_UserSelectByEmail(pEmail).FirstOrDefault();
         return(pUser);
     }
 }
예제 #15
0
 public sp_User_SportRegister_Result SetUserLikesSport(string pUserId, int pGenreId)
 {
     using (touchdbEntities context = new touchdbEntities())
     {
         var pSportRegistered = context.sp_User_SportRegister(Guid.Parse(pUserId), pGenreId).FirstOrDefault();
         return(pSportRegistered);
     }
 }
예제 #16
0
 public sp_UserSelectById_Result GetUserProfile(string pUserId)
 {
     using (touchdbEntities context = new touchdbEntities())
     {
         var pUserProfile = context.sp_UserSelectById(Guid.Parse(pUserId)).FirstOrDefault();
         return(pUserProfile);
     }
 }
예제 #17
0
 public sp_UserUpdateProfile_Result UpdateUserProfile(string pUserId, string pFirstName, string pLastName, string pPhoneNumber, DateTime pNacDate, char pGender, char pGenderPref, string pEmail, int pFaculty, string pImageUrl)
 {
     using (touchdbEntities context = new touchdbEntities())
     {
         var pUserProfile = context.sp_UserUpdateProfile(Guid.Parse(pUserId), pFirstName, pLastName, pPhoneNumber, pNacDate, pGender.ToString(), pGenderPref.ToString(), pEmail, pFaculty, pImageUrl).FirstOrDefault();
         return(pUserProfile);
     }
 }
예제 #18
0
 public sp_UserRegister_Result RegisterUser(string pEmail, string pPassword, string pFirstName, string pLastName, string pPhoneNumber)
 {
     using (touchdbEntities context = new touchdbEntities())
     {
         var pRegisteredUser = context.sp_UserRegister(pEmail, pPassword, pFirstName, pLastName, pPhoneNumber).FirstOrDefault();
         return(pRegisteredUser);
     }
 }