Пример #1
0
        public string EditUser(IFormCollection value, int id)
        {
            var email    = value["email"];
            var nickName = value["nickName"];
            var password = value["password"];
            var avatar   = value["avatar"];

            var users = new UsersDB();

            users.Edit(id, nickName, email, password, avatar);
            var user = new UserModel(id, nickName, email, password, avatar);

            return(user.ToString());
        }