public ActionResult Search(string name, string comm, string addr) { if (!AccountModel.AuthenticateMobile(checkorgmembersonly: true)) { return(Content("not authorized")); } Response.NoCache(); var m = new SearchModel(name, comm, addr); return(new SearchResult0(m.PeopleList(), m.Count)); }
public ActionResult SearchResults(string name, string comm, string addr) { if (!AccountModel.AuthenticateMobile(checkorgmembersonly: true)) { return(Content("not authorized")); } if (!CMSRoleProvider.provider.IsUserInRole(AccountModel.UserName2, "Access")) { return(Content("not authorized")); } Response.NoCache(); DbUtil.LogActivity("iphone search '{0}'".Fmt(name)); var m = new SearchModel(name, comm, addr); return(new SearchResult(m.PeopleList(), m.Count)); }
public ActionResult SearchResults(string name, string comm, string addr) { if (!AccountModel.AuthenticateMobile(checkorgmembersonly: true)) return Content("not authorized"); if (!CMSRoleProvider.provider.IsUserInRole(AccountModel.UserName2, "Access")) return Content("not authorized"); Response.NoCache(); DbUtil.LogActivity("iphone search '{0}'".Fmt(name)); var m = new SearchModel(name, comm, addr); return new SearchResult(m.PeopleList(), m.Count); }
public ActionResult Search(string name, string comm, string addr) { if (!AccountModel.AuthenticateMobile(checkorgmembersonly: true)) return Content("not authorized"); Response.NoCache(); var m = new SearchModel(name, comm, addr); return new SearchResult0(m.PeopleList(), m.Count); }