Beispiel #1
0
 public void save(acc acc)
 {
     WebSecurity.CreateUserAndAccount(acc.UserName, acc.pass, new { name = acc.name, mobile = acc.mobile });
 }
Beispiel #2
0
        public ActionResult save(acc acc)
        {
            if (ModelState.IsValid)
            {
                AccCreater.save(acc);
            }
            int pageSize = 12;
            int pageNumber = 1;

            var ads = (from p in db2.allads select p).OrderByDescending(x => x.Id).ToPagedList(pageNumber, pageSize);

            return View("index",ads);
        }