Пример #1
0
        public string UpdateByCalendar()
        {
            SetSite();
            switch (Site.ReferenceType)
            {
            case "Issues": return(IssueUtilities.UpdateByCalendar(
                                      Site.IssuesSiteSettings(ReferenceId, setAllChoices: true)));

            case "Results": return(ResultUtilities.UpdateByCalendar(
                                       Site.ResultsSiteSettings(ReferenceId, setAllChoices: true)));

            default: return(Messages.ResponseNotFound().ToJson());
            }
        }