public ActionResult EditUserAddress(int addressId) { dynamic userId = Session["UserId"]; UserAddressDal userAddressDal = new UserAddressDal(); UserAddressDto userAddressDto = userAddressDal.GetUserAddressByAddressId(addressId, userId, 1); return(Json(userAddressDto, JsonRequestBehavior.AllowGet)); }
public void UserCheckOutPayment(FormCollection form) { var addressId = Convert.ToInt32(form[12]); dynamic userId = Session["UserId"]; UserAddressDal userAddressDal = new UserAddressDal(); UserAddressDto userAddressDto = userAddressDal.GetUserAddressByAddressId(addressId, userId, 1); UserSignUpDto userSignUpDto = userSignUpDal.GetUserDetailsByUserId(userId); string firstName = userAddressDto.Name; string amount = form["totalPrice"]; string productInfo = "Product"; string email = userSignUpDto.EmailId; string phone = userAddressDto.MobileNo; //string surl = "http://*****:*****@gmail.com|||||||||||mE2RxRwx"; string hash = Generatehash512(hashString); myremotepost.Add("hash", hash); myremotepost.Post(); }