// POST: api/ContactUs public string Post(ContactUs value) { string con = ConfigurationManager.ConnectionStrings["SqlServerConnString"].ConnectionString; Crud_UserProfile repository = new Crud_UserProfile(); return(repository.InsertContactUs(con, value)); }
// GET: api/ShowInterest public IEnumerable <GetShowInterestModel> Get(string userid) { string con = ConfigurationManager.ConnectionStrings["SqlServerConnString"].ConnectionString; Crud_UserProfile repository = new Crud_UserProfile(); return(repository.GetInterestShownProfiles(con, userid)); }
// GET: api/UserRequests public GetUserRequestsModel GetUserRequestsCounts(string userid) { string con = ConfigurationManager.ConnectionStrings["SqlServerConnString"].ConnectionString; Crud_UserProfile repository = new Crud_UserProfile(); return(repository.GetUserRequestsCounts(con, userid)); }
public IEnumerable <GetUserMessages> GetUserLogReqPendingMessages(string ResponderEmailId) { string con = ConfigurationManager.ConnectionStrings["SqlServerConnString"].ConnectionString; Crud_UserProfile repository = new Crud_UserProfile(); return(repository.GetUserLogReqPendingMessages(con, ResponderEmailId)); }
// GET: api/VisitorDetails public IEnumerable <ProfileVisitor> Get(string userid) { string con = ConfigurationManager.ConnectionStrings["SqlServerConnString"].ConnectionString; Crud_UserProfile repository = new Crud_UserProfile(); return(repository.GetProfileVisitor(con, userid)); }
public IEnumerable <UserProfile> ShowUserProfileByGender(int genderId) { string con = ConfigurationManager.ConnectionStrings["SqlServerConnString"].ConnectionString; Crud_UserProfile repository = new Crud_UserProfile(); return(repository.ShowUserProfileByGender(con, genderId)); }
public UserProfile GetShowUserProfileByUniqueId(string userid) { string con = ConfigurationManager.ConnectionStrings["SqlServerConnString"].ConnectionString; Crud_UserProfile repository = new Crud_UserProfile(); return(repository.GetShowUserProfileByUniqueId(con, userid)); }
private GetLoginInfo getUserLoginInfoData(string username, string password) { string con = ConfigurationManager.ConnectionStrings["SqlServerConnString"].ConnectionString; Crud_UserProfile repository = new Crud_UserProfile(); var data = repository.GetUserLoginInfo(con, username, password); return(data); }
public string UpdateProfilePic(UpdateUserPics userPics) { var data = userPics; string con = ConfigurationManager.ConnectionStrings["SqlServerConnString"].ConnectionString; Crud_UserProfile repository = new Crud_UserProfile(); return(repository.UpdateProfilePic(con, data)); //InsertUserProfilePics }
public HttpResponseMessage Get(int lookUpId) { string con = ConfigurationManager.ConnectionStrings["SqlServerConnString"].ConnectionString; Crud_UserProfile repository = new Crud_UserProfile(); getData = repository.GetMasterData(con).Where(m => m.LOOKUP_ID == lookUpId).ToList(); var response = Request.CreateResponse(HttpStatusCode.OK, getData); //return getData.AsEnumerable(); return(response); }