using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using xFileService.Models.Dtos; using xModels.Dtos; using XFileDto = xFileService.Models.Dtos.XFileDto; namespace xFileService.Interfaces { public interface IXFileServiceControllerActions { // #region Tags ... /// /// Attach Tag to Specified Model ... /// /// /// /// Task TagAttach( string tag, Guid id ); /// /// Detach Tag From Specified Model ... /// /// /// /// Task TagDetach( string tag, Guid id ); /// /// Attach Tags to Specified Model ... /// /// /// /// Task TagsAttach( string tags, Guid id ); /// /// Detach Tags From Specified Model ... /// /// /// /// Task TagsDetach( string tags, Guid id ); #endregion // #region Tools ... /// /// Stream Specified File ... /// /// /// Task Stream(Guid id); /// /// Stream Specified File ... /// /// /// Task> Stream(string fileName); /// /// Download Specified File ... /// /// /// Task Download(Guid id); /// /// Download Specified File ... /// /// /// Task Download(string fileName); /// /// Upload Files ... /// /// /// Task>> Upload( IFormFileCollection files ); /// /// Remove Specified Files ... /// /// /// Task>> Remove( string ids ); #endregion // #region Model ... /// /// Get Specified File Model ... /// /// /// /// Task> Get( Guid id ); /// /// Get All Exists File Models ... /// /// /// Task>> GetAll(); /// /// retrieve Entities based on XQuery Pagination structure ... /// /// /// Task>> Query( XQuery query ); /// /// retrieve Owned Entities based on XQuery Pagination structure ... /// /// /// Task>> QueryOwned( XQuery query ); /// /// count all exists Entities ... /// /// Task> Count(); /// /// Check an Entity exists or not ... /// /// /// Task> IsExists( Guid id ); #endregion } }