public IHttpActionResult Get(string a) { //var identity = HttpContext.Current.User.Identity as ClaimsIdentity; //AppUser = UserInfo.GetUser(identity); try { if (a == "reviewers") { //var principal = HttpContext.Current.User.Identity as ClaimsIdentity; var results = UserInfo.GetUserByGroup(SharePointHelper.ReviewerGroup); return(Json(results, CamelCase)); } else if (a == "migration") { var results = EthicsClearance.Migrate(); return(Json(results, CamelCase)); } else if (a.StartsWith("submitter")) { FixSubmitterInfo(); Attendee.FixAttendee(); return(Ok("OK")); } else if (a.StartsWith("test")) { return(Ok("Goodbye World!")); } return(BadRequest("No such action.")); } catch (Exception ex) { return(HandleException(ex)); } }