Example #1
0
        public System.Web.Mvc.ContentResult UpdateByApi()
        {
            SetSite();
            switch (Site.ReferenceType)
            {
            case "Issues": return(IssueUtilities.UpdateByApi(
                                      ss: Site.IssuesSiteSettings(ReferenceId), issueId: ReferenceId));

            case "Results": return(ResultUtilities.UpdateByApi(
                                       ss: Site.ResultsSiteSettings(ReferenceId), resultId: ReferenceId));

            default: return(ApiResults.Get(ApiResponses.BadRequest()));
            }
        }