Ejemplo n.º 1
0
        public OffersModelList MapOffersModel(string userID)
        {
            HDDBContext     _HDDBContext     = new HDDBContext();
            OffersModelList _OffersModelList = _HDDBContext.GetUserProfile(userID);

            return(_OffersModelList);
        }
Ejemplo n.º 2
0
        public OffersModelList UpgradeOfferSectionModel(string userID, string customerType)
        {
            HDDBContext     _HDDBContext     = new HDDBContext();
            OffersModelList _OffersModelList = _HDDBContext.UpgradeOfferDetails(userID, customerType);

            return(_OffersModelList);
        }
Ejemplo n.º 3
0
        public bool ValidateLoginCredentials(string userID, string password)
        {
            bool        isValidUser = false;
            HDDBContext cxt         = new HDDBContext();
            string      result      = cxt.CheckValidUser(userID, password);

            if (result == "True")
            {
                isValidUser = true;
            }
            return(isValidUser);
        }
Ejemplo n.º 4
0
        public string SaveProducts(string userID, string selectedPrd)
        {
            string      CustomerType = string.Empty;
            HDDBContext _HDDBContext = new HDDBContext();
            string      Result       = _HDDBContext.SaveOfferDetails(userID, selectedPrd);

            if (Result == "Success")
            {
                OffersModelList _OffersModelList = _HDDBContext.GetUserProfile(userID);
                CustomerType = _OffersModelList.CustomerType;
            }
            else
            {
                CustomerType = "Failure";
            }
            return(CustomerType);
        }