Пример #1
0
        public System.Web.Mvc.ContentResult DeleteByApi()
        {
            SetSite();
            switch (Site.ReferenceType)
            {
            case "Issues": return(IssueUtilities.DeleteByApi(
                                      ss: Site.IssuesSiteSettings(ReferenceId), issueId: ReferenceId));

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

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