public void save(acc acc) { WebSecurity.CreateUserAndAccount(acc.UserName, acc.pass, new { name = acc.name, mobile = acc.mobile }); }
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); }