/// <summary> /// return number of Import Folders /// </summary> /// <returns></returns> private object CountFolders() { Counter count = new Counter(); count.count = new JMMServiceImplementation().GetImportFolders().Count; return count; }
/// <summary> /// Handle /api/serie/count /// </summary> /// <returns>Counter</returns> private object CountSerie() { Request request = this.Request; Entities.JMMUser user = (Entities.JMMUser)this.Context.CurrentUser; Counter count = new Counter(); count.count = RepoFactory.AnimeSeries.GetAll().Count; return count; }
/// <summary> /// Handle /api/file/count /// </summary> /// <returns>Counter</returns> private object CountFiles() { Counter count = new Counter(); count.count = RepoFactory.VideoLocal.GetAll().Count; return count; }