Exemplo n.º 1
0
        public string UpdateLoyalityPoints(int iLoyalityId, int EarnRupees, int EarnPoints, int RedeemPoints, int RedeemRupees, int iReferredPoints, int iReferPointsSignUp, int iSignUpPointsWithoutRef, int iExpiryDays)
        {
            object result    = null;
            string strReturn = string.Empty;

            try
            {
                eLoyalityPoints obj = new eLoyalityPoints();
                obj = BL_LoyalityAmenityMap.GetSingleRecordById();
                obj.dtActionDate            = DateTime.Now;
                obj.iEarnMoney              = EarnRupees;
                obj.iEarnPoints             = EarnPoints;
                obj.iRedeemMoney            = RedeemRupees;
                obj.iRedeemPoints           = RedeemPoints;
                obj.iReferredPoints         = iReferredPoints;
                obj.iReferPointsSignUp      = iReferPointsSignUp;
                obj.iSignUpPointsWithoutRef = iSignUpPointsWithoutRef;
                obj.iExpiryDays             = iExpiryDays;

                obj.iActionBy = ((OneFineRateBLL.BL_Login.UserDetails)Session["UserDetails"]).iUserId;
                int i = BL_LoyalityAmenityMap.UpdateLoyalityPoints(obj);
                if (i == 1)
                {
                    result = new { st = 1, msg = clsUtils.ErrorMsg("Loyality Points", 2) };
                }
                else
                {
                    result = new { st = 0, msg = clsUtils.ErrorMsg("Loyality Points", 0) };
                }
            }
            catch (Exception)
            {
                result = new { st = 0, msg = clsUtils.ErrorMsg("", 3) };
            }
            strReturn = OneFineRateAppUtil.clsUtils.ConvertToJson(result);
            return(strReturn);
        }
Exemplo n.º 2
0
 public ActionResult Index()
 {
     return(View("Index", BL_LoyalityAmenityMap.GetSingleRecordById()));
 }