Beispiel #1
0
        public String CreateByFB(string id, string name, string email)
        {
            User user = new User()
            {
                user_FBID = id,
                user_name = name,
                user_email = email
            };

            try
            {
                UserRepository.CreateUser(user);

                CheckLogined(id);

            } catch (Exception e)
            {
                return e.ToString();
            }

            return null;
        }
Beispiel #2
0
        public ActionResult UpdateUser(User user)
        {
            UserRepository.UpdateUser(user);

            return RedirectToAction("Details", "Users", new { @id = user.user_ID });
        }