public ActionResult Search(string name, string comm, string addr) { if (!Authenticate(checkOrgLeadersOnly: 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 (!Authenticate(checkOrgLeadersOnly: true)) return Content("not authorized"); if (!CMSRoleProvider.provider.IsUserInRole(AccountModel.UserName2, "Access")) return Content("not authorized"); Response.NoCache(); DbUtil.LogActivity($"iphone search '{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 (!Authenticate(checkOrgLeadersOnly: 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 (!Authenticate(checkOrgLeadersOnly: true)) { return(Content("not authorized")); } if (!CMSRoleProvider.provider.IsUserInRole(AccountModel.UserName2, "Access")) { return(Content("not authorized")); } Response.NoCache(); DbUtil.LogActivity($"iphone search '{name}'"); var m = new SearchModel(name, comm, addr); return(new SearchResult(m.PeopleList(), m.Count())); }