public static int CreateSueetieApplication(int applicationId, string appKey, string appDescription, int groupId, int appTypeId) { var sueetieApplication = new SueetieApplication { ApplicationID = applicationId, ApplicationKey = appKey, GroupID = groupId, ApplicationTypeID = appTypeId, Description = appDescription }; var provider = SueetieDataProvider.LoadProvider(); provider.CreateSueetieApplication(sueetieApplication); if (sueetieApplication.ApplicationTypeID == (int)SueetieApplicationType.Blog && sueetieApplication.GroupID == 0) { var sueetieBlog = new SueetieBlog { ApplicationID = applicationId, BlogTitle = sueetieApplication.Description }; SueetieBlogs.CreateSueetieBlog(sueetieBlog); } ClearApplicationListCache(); return(applicationId); }
public static void SetMostRecentContentId(SueetieBlog sueetieBlog) { var provider = SueetieDataProvider.LoadProvider(); provider.SetMostRecentContentID(sueetieBlog); }
public static void CreateSueetieBlog(SueetieBlog sueetieBlog) { var provider = SueetieDataProvider.LoadProvider(); provider.CreateSueetieBlog(sueetieBlog); }