public ActionResult Index(HomeModel model, int Type) { if (Type == (int)QueryType.Candidate) return RedirectToAction("Candidates", "Search", model.BasicSearch); else return RedirectToAction("Clients", "Search", model.BasicSearch); }
public ActionResult Index() { HomeModel Model = new HomeModel(Membership.GetUser(User.Identity.Name)); return View(Model); }