Exemplo n.º 1
0
        public ActionResult EditYourProfile(UserDataViewModel obj)
        {
            using (ShoppingCartAppEntities db = new ShoppingCartAppEntities())
            {
                ContentRepository service = new ContentRepository();

                int i = service.AddUpdateUserData(obj); if (i == 1)
                {
                    return(RedirectToAction("UserProfile"));
                }
                db.SaveChanges();
                return(RedirectToAction("UserProfile"));
            }
        }