예제 #1
0
 /// <summary>
 /// return number of Import Folders
 /// </summary>
 /// <returns></returns>
 private object CountFolders()
 {
     Counter count = new Counter();
     count.count = new JMMServiceImplementation().GetImportFolders().Count;
     return count;
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 /// <summary>
 /// Handle /api/file/count
 /// </summary>
 /// <returns>Counter</returns>
 private object CountFiles()
 {
     Counter count = new Counter();
     count.count = RepoFactory.VideoLocal.GetAll().Count;
     return count;
 }