Exemplo n.º 1
0
        public ActionResult CreateUpdateUserProfile(User user)
        {
            try
            {
                if (user.UserId != null){
                    UserFunctions.Update(user);
                }
                else{
                    UserFunctions.Create(user);
                }

                return Json("Success");
            }
            catch (Exception ex)
            {
                return Json("Error occurred. Error details: " + ex.Message);
            }
        }