public ActionResult AcceptAgreement(UserAcceptanceViewModel uacceptvm)
        {
            UserAgreementsAcceptanceDetail uaad = new UserAgreementsAcceptanceDetail();
            uaad.UserID = uacceptvm.UserId;
            uaad.AgreementID = uacceptvm.AgreementID;
            uaad.AgreementAccepetedOn = DateTime.Now;
            dbmeals.UserAgreementsAcceptanceDetails.Add(uaad);
            dbmeals.SaveChanges();

            return RedirectToAction("Index", "MealAd", new { userID = uacceptvm.UserId });
        }
        public ActionResult AcceptAgreement(int userID)
        {
            UserDetail detail = new UserDetail();
            detail.UserId = userID;

            UserAcceptanceViewModel uacceptvm = new UserAcceptanceViewModel();
            uacceptvm.UserId = userID;
            UserAgreement ua = dbmeals.UserAgreements.Where(x => x.Name == "Seller Agreement").FirstOrDefault();
            uacceptvm.UserAgreement = ua.AgreementDetails;
            uacceptvm.AgreementID = ua.AgreementID;
            return View(uacceptvm);
        }