diff --git a/Controllers/V1/AiController.cs b/Controllers/V1/AiController.cs deleted file mode 100644 index 507c75e..0000000 --- a/Controllers/V1/AiController.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System.Threading; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Logging; -using xAiService.Controllers; -using xAiService.Interfaces; -using xCommons.Attributes; -using xCommons.Configurations; -using xCommons.Providers; -using xIdentityHelper; -using xIdentityService.Interfaces; - -namespace xApi.Controllers.V1 -{ - [ApiController] - [ApiVersion("1.0")] - [RequireXPowered(true)] - [Route("api/v{version:apiVersion}/[controller]")] - public class AiController : XAiServiceControllerBase, IXAiServiceControllerBase - { - // - #region Constructor ... - public AiController( - ILogger logger, - IXAiService aiService, - XAppConfiguration appConfiguration, - IXIdentityProvider identityProvider, - XValidationProvider validationProvider - ) : base( - logger, - aiService, - appConfiguration, - identityProvider, - validationProvider - ) - { } - #endregion - - // - #region Text Actions ... - [HttpGet("Ask")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task> Ask( - [FromQuery] string prompt, - CancellationToken cancellationToken = default - ) - { - return await base.Ask( - prompt: prompt, - cancellationToken: cancellationToken - ); - } - - [HttpGet("AskStream")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task AskStream( - [FromQuery] string prompt, - CancellationToken cancellationToken = default - ) - { - return await base.AskStream( - prompt: prompt, - cancellationToken: cancellationToken - ); - } - #endregion - } -} \ No newline at end of file diff --git a/Controllers/V1/Configurations/ConfigurationsController+Terms.cs b/Controllers/V1/Configurations/ConfigurationsController+Terms.cs deleted file mode 100644 index 5a06e1b..0000000 --- a/Controllers/V1/Configurations/ConfigurationsController+Terms.cs +++ /dev/null @@ -1,244 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using xCommons.Extensions; -using xIdentityHelper; -using xServices.TermsConditions.Interfaces; - -namespace xApi.Controllers.V1 -{ - /// - /// Implementing Terms and Conditions Action Provider ... - /// - public partial class ConfigurationsController : IXTermsConditionsControllerActions - { - // - #region Actions ... - /// - /// Retrieved all Exists Languages Terms and Conditions ... - /// - /// - [HttpGet("Terms/Languages")] - [Authorize(Policy = XPolicies.EnabledUser)] - public async Task>> TermsLanguages() - { - // - // Do ... - try - { - // - // Retrieve User Info ... - var userInfo = await GetUserInfo(); - var connectionId = GetConnectionId(); - - // - var result = await TermsProvider.TermsLanguages(); - - // - return Ok(result - .ToDynamicObject()); - } - catch (Exception ex) - { - // - var result = GetExceptionActionResult(ex); - return result; - } - } - - /// - /// Check Has Terms and Conditions based on Specified Language ... - /// - /// if null, used Default Language ... - /// - [HttpGet("Terms/{language}/Has")] - [Authorize(Policy = XPolicies.EnabledUser)] - public async Task> HasTerms( - [FromRoute] string language = null - ) - { - // - // Do ... - try - { - // - // Retrieve User Info ... - var userInfo = await GetUserInfo(); - var connectionId = GetConnectionId(); - - // - var result = await TermsProvider.HasTerms( - language: language - ); - - // - return Ok(result); - } - catch (Exception ex) - { - // - var result = GetExceptionActionResult(ex); - return result; - } - } - - /// - /// Retrieve Terms and Conditions for Specified Language ... - /// - /// if null, used Default Language ... - /// - [AllowAnonymous] - [HttpGet("Terms/{language}")] - public async Task> GetTerms( - [FromRoute] string language = null - ) - { - // - // Do ... - try - { - // - // Retrieve User Info ... - var userInfo = await GetUserInfo(); - var connectionId = GetConnectionId(); - - // - var result = await TermsProvider.GetTerms( - language: language - ); - - // - return Ok(result); - } - catch (Exception ex) - { - // - var result = GetExceptionActionResult(ex); - return result; - } - } - - /// - /// Add Terms and Conditions for Specified Language ... - /// - /// - /// - /// - [HttpPost("Terms/{language}")] - [Authorize(Policy = XPolicies.EnabledAdmin)] - public async Task> AddTerms( - [FromRoute] string language, - [FromQuery] string terms - ) - { - // - // Do ... - try - { - // - // Retrieve User Info ... - var userInfo = await GetUserInfo(); - var connectionId = GetConnectionId(); - - // - var result = await TermsProvider.AddTerms( - terms: terms, - language: language, - userInfo: userInfo, - connectionId: connectionId - ); - - // - return Ok(result); - } - catch (Exception ex) - { - // - var result = GetExceptionActionResult(ex); - return result; - } - } - - /// - /// Remove Terms and Conditions of Specified Language ... - /// - /// - /// - [HttpDelete("Terms/{language}")] - [Authorize(Policy = XPolicies.EnabledAdmin)] - public async Task> RemoveTerms( - [FromRoute] string language - ) - { - // - // Do ... - try - { - // - // Retrieve User Info ... - var userInfo = await GetUserInfo(); - var connectionId = GetConnectionId(); - - // - var result = await TermsProvider.RemoveTerms( - language: language, - userInfo: userInfo, - connectionId: connectionId - ); - - // - return Ok(result); - } - catch (Exception ex) - { - // - var result = GetExceptionActionResult(ex); - return result; - } - } - - /// - /// Update Terms and Conditions of Specified Language ... - /// - /// - /// - /// - [HttpPut("Terms/{language}")] - [Authorize(Policy = XPolicies.EnabledAdmin)] - public async Task> UpdateTerms( - [FromRoute] string language, - [FromQuery] string terms - ) - { - // - // Do ... - try - { - // - // Retrieve User Info ... - var userInfo = await GetUserInfo(); - var connectionId = GetConnectionId(); - - // - var result = await TermsProvider.UpdateTerms( - terms: terms, - language: language, - userInfo: userInfo, - connectionId: connectionId - ); - - // - return Ok(result); - } - catch (Exception ex) - { - // - var result = GetExceptionActionResult(ex); - return result; - } - } - #endregion - } -} \ No newline at end of file diff --git a/Controllers/V1/ConfigurationsController.cs b/Controllers/V1/ConfigurationsController.cs deleted file mode 100644 index 7e53100..0000000 --- a/Controllers/V1/ConfigurationsController.cs +++ /dev/null @@ -1,40 +0,0 @@ -using Microsoft.Extensions.Logging; -using xApi.Base; -using xCommons.Configurations; -using xCommons.Providers; -using xIdentityService.Interfaces; -using xServices.TermsConditions.Interfaces; - -namespace xApi.Controllers.V1 -{ - /// - /// Provides all Configuration related Actions such as String resources and Terms and Configurations ... - /// - public partial class ConfigurationsController : XIBaseV1Controller - { - // - #region Properties ... - public IXTermsComditionsProvider TermsProvider { get; } - #endregion - - // - #region Constructor ... - public ConfigurationsController( - XAppConfiguration appConfiguration, - IXIdentityProvider identityProvider, - XValidationProvider validationProvider, - IXTermsComditionsProvider termsProvider, - ILogger logger - ) : base( - logger, - appConfiguration, - identityProvider, - validationProvider - ) - { - // - TermsProvider = termsProvider; - } - #endregion - } -} \ No newline at end of file diff --git a/Controllers/V1/Entities/FilesController.cs b/Controllers/V1/Entities/FilesController.cs deleted file mode 100644 index e5b52b9..0000000 --- a/Controllers/V1/Entities/FilesController.cs +++ /dev/null @@ -1,324 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.SignalR; -using Microsoft.Extensions.Logging; -using xApi.Base; -using xCommons.Configurations; -using xCommons.Extensions; -using xCommons.Providers; -using xDataService.Interfaces; -using xFileService.Interfaces.Entities; -using xFileService.Models.Entities; -using xIdentityHelper; -using xIdentityService.Interfaces; -using xModels.Base; -using xModels.Dtos; -using xPushService.Base; -using xPushService.Constants; - -namespace xApi.Controllers.V1.Entities -{ - public class FilesController : XIBaseV1EntityHubController - { - // - #region Constructor ... - public FilesController( - ILogger logger, - XAppConfiguration appConfiguration, - IXIdentityProvider identityProvider, - XValidationProvider validationProvider, - IXFileRepository repository, - IHubContext> hub = null - ) : base( - logger, - appConfiguration, - identityProvider, - validationProvider, - repository, - hub - ) - { } - #endregion - - // - #region Interface Implementations ... - // - #region Retrieve ... - [HttpGet("{id}")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task> Get( - [FromRoute] Guid id, [FromQuery] bool ignoreSoftDeleteds = true, [FromQuery] bool containsDetail = false - ) - { - return await base - .Get( - id: id, - containsDetail: containsDetail, - ignoreSoftDeleteds: ignoreSoftDeleteds - ); - } - - [HttpGet] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task>> GetAll( - [FromQuery] bool ignoreSoftDeleteds = true, [FromQuery] bool containsDetail = false - ) - { - return await base - .GetAll( - containsDetail: containsDetail, - ignoreSoftDeleteds: ignoreSoftDeleteds - ); - } - - [HttpGet("FindOne/{query}")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task> FindOne( - [FromRoute] string query, [FromQuery] bool ignoreSoftDeleteds = true, [FromQuery] bool containsDetail = false - ) - { - return await base - .FindOne( - query: query, - containsDetail: containsDetail, - ignoreSoftDeleteds: ignoreSoftDeleteds - ); - } - - [HttpGet("FindMany/{query}")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task>> FindMany( - [FromRoute] string query, [FromQuery] bool ignoreSoftDeleteds = true, [FromQuery] bool containsDetail = false - ) - { - return await base - .FindMany( - query: query, - containsDetail: containsDetail, - ignoreSoftDeleteds: ignoreSoftDeleteds - ); - } - - [HttpGet("Query")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task>> Query( - [FromQuery] XQuery query, [FromQuery] bool ignoreSoftDeleteds = true - ) - { - return await base - .Query( - query: query, - ignoreSoftDeleteds: ignoreSoftDeleteds - ); - } - #endregion - - // - #region Add ... - [HttpPost] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> Add( - [FromBody] XFile item - ) - { - // - var entity = await base - .Add(item); - - // - if (!entity.IsNullOrDefault()) - { - // - await SendPush( - action: XBaseEntityHubAction.Add.GetStringValue(), - payLoad: entity.ToJSON() - ); - } - - // - return entity; - } - - [HttpPost("AddOrUpdate")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> AddOrUpdate( - [FromBody] XFile item - ) - { - // - var entity = await base - .AddOrUpdate(item); - - // - if (!entity.IsNullOrDefault()) - { - // - await SendPush( - action: XBaseEntityHubAction.AddOrUpdate.GetStringValue(), - payLoad: entity.ToJSON() - ); - } - - // - return entity; - } - - [HttpPost("AddMany")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task AddMany( - [FromBody] XBaseRangeRequest request - ) - { - // - var result = await base - .AddMany(request); - - // - if (!(result as OkObjectResult).IsNull()) - { - // - await SendPush( - action: XBaseEntityHubAction.AddMany.GetStringValue(), - payLoad: request.Items.ToJSON() - ); - } - - // - return result; - } - #endregion - - // - #region Update ... - [HttpPut("{id}")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> Update( - [FromRoute] Guid id, [FromBody] XFile item - ) - { - // - var entity = await base - .Update( - id, - item - ); - - // - if (!entity.IsNullOrDefault()) - { - // - await SendPush( - action: XBaseEntityHubAction.Update.GetStringValue(), - payLoad: entity.ToJSON() - ); - } - - // - return entity; - } - - [HttpPost("UpdateMany")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> UpdateMany( - [FromBody] XBaseRangeRequest request - ) - { - // - var result = await base - .UpdateMany(request); - - // - var resultObject = (result.Result as OkObjectResult).Value; - if (!resultObject.IsNull() && (bool)resultObject) - { - // - await SendPush( - action: XBaseEntityHubAction.UpdateMany.GetStringValue(), - payLoad: request.Items.ToJSON() - ); - } - - // - return result; - } - #endregion - - // - #region Exists ... - [HttpGet("{id}/IsExists")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task> IsExists( - [FromRoute] Guid id, [FromQuery] bool ignoreSoftDeleteds = true - ) - { - return await base - .IsExists( - id: id, - ignoreSoftDeleteds: ignoreSoftDeleteds - ); - } - #endregion - - // - #region Remove ... - [HttpDelete("{id}")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> Remove( - [FromRoute] Guid id, bool softDelete = true - ) - { - // - var entity = await base - .Remove( - id: id, - softDelete: softDelete - ); - - // - if (!entity.IsNullOrDefault()) - { - // - await SendPush( - action: XBaseEntityHubAction.Delete.GetStringValue(), - payLoad: entity.ToJSON() - ); - } - - // - return entity; - } - - [HttpPost("RemoveMany")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task RemoveMany( - [FromBody] XBaseRangeRequest request, bool softDelete = true - ) - { - // - var result = await base - .RemoveMany( - request: request, - softDelete: softDelete - ); - - // - if (!(result as OkObjectResult).IsNull()) - { - // - await SendPush( - action: XBaseEntityHubAction.DeleteMany.GetStringValue(), - payLoad: request.Items.ToJSON() - ); - } - - // - return result; - } - #endregion - #endregion - } -} \ No newline at end of file diff --git a/Controllers/V1/Entities/StringsController.cs b/Controllers/V1/Entities/StringsController.cs deleted file mode 100644 index a1306e9..0000000 --- a/Controllers/V1/Entities/StringsController.cs +++ /dev/null @@ -1,326 +0,0 @@ -using System.Collections.Generic; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.SignalR; -using Microsoft.Extensions.Logging; -using xApi.Base; -using xCommons.Configurations; -using xCommons.Extensions; -using xCommons.Providers; -using xIdentityHelper; -using xIdentityService.Interfaces; -using xModels.Base; -using xModels.Dtos; -using xPushService.Base; -using xPushService.Constants; -using xStringService.Interfaces.Entities; -using xStringService.Models.Entities; - -namespace xApi.Controllers.V1.Entities -{ - /// - /// Simple XString Entity Controller ... - /// - public class StringsController : XIBaseV1EntityHubController - { - // - #region Constructor ... - public StringsController( - ILogger logger, - XAppConfiguration appConfiguration, - IXIdentityProvider identityProvider, - XValidationProvider validationProvider, - IXStringRepository repository, - IHubContext> hub = null - ) : base( - logger, - appConfiguration, - identityProvider, - validationProvider, - repository, - hub - ) - { } - #endregion - - // - #region Interface Implementations ... - // - #region Retrieve ... - [HttpGet("{id}")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task> Get( - [FromRoute] int id, [FromQuery] bool ignoreSoftDeleteds = true, [FromQuery] bool containsDetail = false - ) - { - return await base - .Get( - id: id, - containsDetail: containsDetail, - ignoreSoftDeleteds: ignoreSoftDeleteds - ); - } - - [HttpGet] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task>> GetAll( - [FromQuery] bool ignoreSoftDeleteds = true, [FromQuery] bool containsDetail = false - ) - { - return await base - .GetAll( - containsDetail: containsDetail, - ignoreSoftDeleteds: ignoreSoftDeleteds - ); - } - - [HttpGet("FindOne/{query}")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task> FindOne( - [FromRoute] string query, [FromQuery] bool ignoreSoftDeleteds = true, [FromQuery] bool containsDetail = false - ) - { - return await base - .FindOne( - query: query, - containsDetail: containsDetail, - ignoreSoftDeleteds: ignoreSoftDeleteds - ); - } - - [HttpGet("FindMany/{query}")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task>> FindMany( - [FromRoute] string query, [FromQuery] bool ignoreSoftDeleteds = true, [FromQuery] bool containsDetail = false - ) - { - return await base - .FindMany( - query: query, - containsDetail: containsDetail, - ignoreSoftDeleteds: ignoreSoftDeleteds - ); - } - - [HttpGet("Query")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task>> Query( - [FromQuery] XQuery query, [FromQuery] bool ignoreSoftDeleteds = true - ) - { - return await base - .Query( - query: query, - ignoreSoftDeleteds: ignoreSoftDeleteds - ); - } - #endregion - - // - #region Add ... - [HttpPost] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> Add( - [FromBody] XString item - ) - { - // - var entity = await base - .Add(item); - - // - // Handle Sending Push Notification ... - if (!entity.IsNullOrDefault()) - { - // - await SendPush( - action: XBaseEntityHubAction.Add.GetStringValue(), - payLoad: entity.ToJSON() - ); - } - - // - return entity; - } - - [HttpPost("AddOrUpdate")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> AddOrUpdate( - [FromBody] XString item - ) - { - // - var entity = await base - .AddOrUpdate(item); - - // - // Handle Sending Push Notification ... - if (!entity.IsNullOrDefault()) - { - // - await SendPush( - action: XBaseEntityHubAction.AddOrUpdate.GetStringValue(), - payLoad: entity.ToJSON() - ); - } - - // - return entity; - } - - [HttpPost("AddMany")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task AddMany( - [FromBody] XBaseRangeRequest request - ) - { - // - var result = await base - .AddMany(request); - - // - if (!(result as OkObjectResult).IsNull()) - { - // - await SendPush( - action: XBaseEntityHubAction.AddMany.GetStringValue(), - payLoad: request.Items.ToJSON() - ); - } - - // - return result; - } - #endregion - - // - #region Update ... - [HttpPut("{id}")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> Update( - [FromRoute] int id, [FromBody] XString item - ) - { - // - var entity = await base - .Update( - id, - item - ); - - // - if (!entity.IsNullOrDefault()) - { - // - await SendPush( - action: XBaseEntityHubAction.Update.GetStringValue(), - payLoad: entity.ToJSON() - ); - } - - // - return entity; - } - - [HttpPost("UpdateMany")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> UpdateMany( - [FromBody] XBaseRangeRequest request - ) - { - // - var result = await base - .UpdateMany(request); - - // - var resultObject = (result.Result as OkObjectResult).Value; - if (!resultObject.IsNull() && (bool)resultObject) - { - // - await SendPush( - action: XBaseEntityHubAction.UpdateMany.GetStringValue(), - payLoad: request.Items.ToJSON() - ); - } - - // - return result; - } - #endregion - - // - #region Exists ... - [HttpGet("{id}/IsExists")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task> IsExists( - [FromRoute] int id, [FromQuery] bool ignoreSoftDeleteds = true - ) - { - return await base - .IsExists( - id: id, - ignoreSoftDeleteds: ignoreSoftDeleteds - ); - } - #endregion - - // - #region Remove ... - [HttpDelete("{id}")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> Remove( - [FromRoute] int id, bool softDelete = true - ) - { - // - var entity = await base - .Remove( - id: id, - softDelete: softDelete - ); - - // - if (!entity.IsNullOrDefault()) - { - // - await SendPush( - action: XBaseEntityHubAction.Delete.GetStringValue(), - payLoad: entity.ToJSON() - ); - } - - // - return entity; - } - - [HttpPost("RemoveMany")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task RemoveMany( - [FromBody] XBaseRangeRequest request, bool softDelete = true - ) - { - // - var result = await base - .RemoveMany( - request: request, - softDelete: softDelete - ); - - // - if (!(result as OkObjectResult).IsNull()) - { - // - await SendPush( - action: XBaseEntityHubAction.DeleteMany.GetStringValue(), - payLoad: request.Items.ToJSON() - ); - } - - // - return result; - } - #endregion - #endregion - } -} \ No newline at end of file diff --git a/Controllers/V1/Entities/TagsController.cs b/Controllers/V1/Entities/TagsController.cs deleted file mode 100644 index ef369f0..0000000 --- a/Controllers/V1/Entities/TagsController.cs +++ /dev/null @@ -1,321 +0,0 @@ -using System.Collections.Generic; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.SignalR; -using Microsoft.Extensions.Logging; -using xApi.Base; -using xCommons.Configurations; -using xCommons.Extensions; -using xCommons.Providers; -using xIdentityHelper; -using xIdentityService.Interfaces; -using xModels.Base; -using xModels.Dtos; -using xPushService.Base; -using xPushService.Constants; -using xTagService.Interfaces.Entities; -using xTagService.Models.Entities; - -namespace xApi.Controllers.V1.Entities -{ - public class TagsController : XIBaseV1EntityHubController - { - // - #region Constructor ... - public TagsController( - ILogger logger, - XAppConfiguration appConfiguration, - IXIdentityProvider identityProvider, - XValidationProvider validationProvider, - IXTagRepository repository, - IHubContext> hub = null - ) : base( - logger, - appConfiguration, - identityProvider, - validationProvider, - repository, - hub - ) - { } - #endregion - - // - #region Interface Implementations ... - // - #region Retrieve ... - [HttpGet("{id}")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task> Get( - [FromRoute] int id, [FromQuery] bool ignoreSoftDeleteds = true, [FromQuery] bool containsDetail = false - ) - { - return await base - .Get( - id: id, - containsDetail: containsDetail, - ignoreSoftDeleteds: ignoreSoftDeleteds - ); - } - - [HttpGet] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task>> GetAll( - [FromQuery] bool ignoreSoftDeleteds = true, [FromQuery] bool containsDetail = false - ) - { - return await base - .GetAll( - containsDetail: containsDetail, - ignoreSoftDeleteds: ignoreSoftDeleteds - ); - } - - [HttpGet("FindOne/{query}")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task> FindOne( - [FromRoute] string query, [FromQuery] bool ignoreSoftDeleteds = true, [FromQuery] bool containsDetail = false - ) - { - return await base - .FindOne( - query: query, - containsDetail: containsDetail, - ignoreSoftDeleteds: ignoreSoftDeleteds - ); - } - - [HttpGet("FindMany/{query}")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task>> FindMany( - [FromRoute] string query, [FromQuery] bool ignoreSoftDeleteds = true, [FromQuery] bool containsDetail = false - ) - { - return await base - .FindMany( - query: query, - containsDetail: containsDetail, - ignoreSoftDeleteds: ignoreSoftDeleteds - ); - } - - [HttpGet("Query")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task>> Query( - [FromQuery] XQuery query, [FromQuery] bool ignoreSoftDeleteds = true - ) - { - return await base - .Query( - query: query, - ignoreSoftDeleteds: ignoreSoftDeleteds - ); - } - #endregion - - // - #region Add ... - [HttpPost] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> Add( - [FromBody] XTag item - ) - { - // - var entity = await base - .Add(item); - - // - if (!entity.IsNullOrDefault()) - { - // - await SendPush( - action: XBaseEntityHubAction.Add.GetStringValue(), - payLoad: entity.ToJSON() - ); - } - - // - return entity; - } - - [HttpPost("AddOrUpdate")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> AddOrUpdate( - [FromBody] XTag item - ) - { - // - var entity = await base - .AddOrUpdate(item); - - // - if (!entity.IsNullOrDefault()) - { - // - await SendPush( - action: XBaseEntityHubAction.AddOrUpdate.GetStringValue(), - payLoad: entity.ToJSON() - ); - } - - // - return entity; - } - - [HttpPost("AddMany")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task AddMany( - [FromBody] XBaseRangeRequest request - ) - { - // - var result = await base - .AddMany(request); - - // - if (!(result as OkObjectResult).IsNull()) - { - // - await SendPush( - action: XBaseEntityHubAction.AddMany.GetStringValue(), - payLoad: request.Items.ToJSON() - ); - } - - // - return result; - } - #endregion - - // - #region Update ... - [HttpPut("{id}")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> Update( - [FromRoute] int id, [FromBody] XTag item - ) - { - // - var entity = await base - .Update( - id, - item - ); - - // - if (!entity.IsNullOrDefault()) - { - // - await SendPush( - action: XBaseEntityHubAction.Update.GetStringValue(), - payLoad: entity.ToJSON() - ); - } - - // - return entity; - } - - [HttpPost("UpdateMany")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> UpdateMany( - [FromBody] XBaseRangeRequest request - ) - { - // - var result = await base - .UpdateMany(request); - - // - var resultObject = (result.Result as OkObjectResult).Value; - if (!resultObject.IsNull() && (bool)resultObject) - { - // - await SendPush( - action: XBaseEntityHubAction.UpdateMany.GetStringValue(), - payLoad: request.Items.ToJSON() - ); - } - - // - return result; - } - #endregion - - // - #region Exists ... - [HttpGet("{id}/IsExists")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task> IsExists( - [FromRoute] int id, [FromQuery] bool ignoreSoftDeleteds = true - ) - { - return await base - .IsExists( - id: id, - ignoreSoftDeleteds: ignoreSoftDeleteds - ); - } - #endregion - - // - #region Remove ... - [HttpDelete("{id}")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> Remove( - [FromRoute] int id, bool softDelete = true - ) - { - // - var entity = await base - .Remove( - id: id, - softDelete: softDelete - ); - - // - if (!entity.IsNullOrDefault()) - { - // - await SendPush( - action: XBaseEntityHubAction.Delete.GetStringValue(), - payLoad: entity.ToJSON() - ); - } - - // - return entity; - } - - [HttpPost("RemoveMany")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task RemoveMany( - [FromBody] XBaseRangeRequest request, bool softDelete = true - ) - { - // - var result = await base - .RemoveMany( - request: request, - softDelete: softDelete - ); - - // - if (!(result as OkObjectResult).IsNull()) - { - // - await SendPush( - action: XBaseEntityHubAction.DeleteMany.GetStringValue(), - payLoad: request.Items.ToJSON() - ); - } - - // - return result; - } - #endregion - #endregion - } -} \ No newline at end of file diff --git a/Controllers/V1/Services/FilesController.cs b/Controllers/V1/Services/FilesController.cs deleted file mode 100644 index a0785a2..0000000 --- a/Controllers/V1/Services/FilesController.cs +++ /dev/null @@ -1,309 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Logging; -using xCommons.Attributes; -using xCommons.Configurations; -using xCommons.Providers; -using xFileService.Controllers; -using xFileService.Interfaces; -using xIdentityHelper; -using xIdentityService.Interfaces; -using xModels.Dtos; -using XFileDto = xFileService.Models.Dtos.XFileDto; - -namespace xApi.Controllers.V1.Services -{ - [ApiController] - [ApiVersion("1.0")] - [RequireXPowered(true)] - [Route("api/v{version:apiVersion}/services/[controller]")] - public class FilesController : XFileServiceControllerBase, IXFileServiceControllerActions - { - // - #region Constructor ... - public FilesController( - ILogger logger, - IXFileProvider fileProvider, - XAppConfiguration appConfiguration, - IXIdentityProvider identityProvider, - XValidationProvider validationProvider - ) : base( - logger, - fileProvider, - appConfiguration, - identityProvider, - validationProvider - ) - { } - #endregion - - // - #region Tools ... - /// - /// Stream Specified File ... - /// - /// - /// - [HttpGet("{id}/Stream/ById")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task Stream( - [FromRoute] Guid id - ) - { - return await base.Stream(id); - } - - /// - /// Stream Specified File ... - /// - /// - /// - [HttpGet("{name}/Stream/ByName")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task Stream( - [FromRoute] string name - ) - { - return await base.Stream(name); - } - - /// - /// Download Specified File ... - /// - /// - /// - [HttpGet("{id}/Download/ById")] - public override async Task Download( - [FromRoute] Guid id - ) - { - return await base.Download(id); - } - - /// - /// Download Specified File ... - /// - /// - /// - [HttpGet("{name}/Download/ByName")] - public override async Task Download( - [FromRoute] string name - ) - { - return await base.Download(name); - } - - /// - /// Upload Files ... - /// - /// - /// - [HttpPost("")] - [RequestSizeLimit(966_367_641)] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task>> Upload( - [FromForm] IFormFileCollection files - ) - { - return await base.Upload(files); - } - - /// - /// Remove Specified Files ... - /// - /// - /// - /// [HttpDelete("Remove")] - [HttpDelete("")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task>> Remove( - [FromQuery] string ids - ) - { - return await base.Remove(ids); - } - #endregion - - // - #region Model ... - /// - /// Get Specified File Model ... - /// - /// - /// - [HttpGet("{id}")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task> Get( - [FromRoute] Guid id - ) - { - return await base.Get(id); - } - - /// - /// Get All Exists File Models ... - /// - /// - [HttpGet("All")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task>> GetAll() - { - return await base.GetAll(); - } - - /// - /// retrieve Entities based on XQuery Pagination structure ... - /// - /// - /// - [HttpGet("Query")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task>> Query( - [FromQuery] XQuery query - ) - { - return await base.Query(query); - } - - /// - /// retrieve Owned Entities based on XQuery Pagination structure ... - /// - /// - /// - [HttpGet("Query/Owned")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task>> QueryOwned( - [FromQuery] XQuery query - ) - { - return await base.QueryOwned(query); - } - - /// - /// count all exists Entities ... - /// - /// - [HttpGet("Count")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task> Count() - { - return await base.Count(); - } - - /// - /// Check an Entity exists or not ... - /// - /// - /// - [HttpGet("{id}/IsExists")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task> IsExists( - [FromRoute] Guid id - ) - { - return await base.IsExists(id); - } - #endregion - - // - #region Tags ... - /// - /// Attach Tag to Specified Model ... - /// - /// - /// - /// - [HttpPost("{id}/Tags/Attach")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task AttachTag( - [FromRoute] Guid id, - [FromQuery] string tag - ) - { - // - return await base.AttachTag( - id: id, - tag: tag - ); - } - - /// - /// Detach Tag From Specified Model ... - /// - /// - /// - /// - [HttpDelete("{id}/Tags/Detach")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task DetachTag( - [FromRoute] Guid id, - [FromQuery] string tag - ) - { - // - return await base.DetachTag( - id: id, - tag: tag - ); - } - - /// - /// Attach Tags to Specified Model ... - /// - /// - /// - /// - [HttpPost("{id}/Tags/AttachMany")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task AttachTags( - [FromRoute] Guid id, - [FromQuery] string tags - ) - { - // - return await base.AttachTags( - id: id, - tags: tags - ); - } - - /// - /// Detach Tags From Specified Model ... - /// - /// - /// - /// - [HttpDelete("{id}/Tags/DetachMany")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task DetachTags( - [FromRoute] Guid id, - [FromQuery] string tags - ) - { - // - return await base.DetachTags( - id: id, - tags: tags - ); - } - - /// - /// Retrieve Tags of Specified File ... - /// - /// - /// - [HttpGet("{id}/Tags")] - public override async Task>> GetTags( - [FromRoute] Guid id - ) - { - // - return await base.GetTags(id); - } - #endregion - } -} \ No newline at end of file diff --git a/Controllers/V1/Services/StringsController.cs b/Controllers/V1/Services/StringsController.cs deleted file mode 100644 index c6cc2d0..0000000 --- a/Controllers/V1/Services/StringsController.cs +++ /dev/null @@ -1,468 +0,0 @@ -using System.Collections.Generic; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Logging; -using xCommons.Attributes; -using xCommons.Configurations; -using xCommons.Providers; -using xIdentityHelper; -using xIdentityService.Interfaces; -using xModels.Dtos; -using xStringService.Controllers; -using xStringService.Interfaces; -using xStringService.Models.Dtos; - -namespace xApi.Controllers.V1.Services -{ - [ApiController] - [ApiVersion("1.0")] - [RequireXPowered(true)] - [Route("api/v{version:apiVersion}/services/[controller]")] - public class StringsController : XStringServiceControllerBase, IXStringServiceControllerActions - { - // - #region Constructor ... - public StringsController( - ILogger logger, - IXStringProvider stringProvider, - XAppConfiguration appConfiguration, - IXIdentityProvider identityProvider, - XValidationProvider validationProvider - ) : base( - logger, - stringProvider, - appConfiguration, - identityProvider, - validationProvider - ) - { } - #endregion - - // - #region Implementing Actions ... - // - #region Retrievers ... - /// - /// Retrieve all Exists Languages ... - /// - /// - [AllowAnonymous] - [HttpGet("Languages")] - public override async Task>> GetLanguages() - { - return await base.GetLanguages(); - } - - /// - /// Check Specified Resource Exists or not ... - /// - /// - /// - /// - [AllowAnonymous] - [HttpGet("IsResourceExists")] - public override async Task> IsResourceExists( - [FromQuery] string resource, - [FromQuery] string language = null - ) - { - // - return await base - .IsResourceExists( - resource: resource, - language: language - ); - } - - /// - /// Retrieve Specified Resource ... - /// - /// - /// - /// - [HttpGet("")] - [AllowAnonymous] - public override async Task> Get( - [FromQuery] string resource, - [FromQuery] string language = null - ) - { - // - return await base - .Get( - resource: resource, - language: language - ); - } - - /// - /// Retrieve Specified Translation of Specified Resource ... - /// - /// - /// - /// - [AllowAnonymous] - [HttpGet("ResourceValue")] - public override async Task> GetResourceValue( - [FromQuery] string resource, - [FromQuery] string language = null - ) - { - // - return await base - .GetResourceValue( - resource: resource, - language: language - ); - } - - /// - /// Retrieve an Specified Resource Items ... - /// - /// - /// - [AllowAnonymous] - [HttpGet("Resources")] - public override async Task>> GetResources( - [FromQuery] string resource - ) - { - return await base.GetResources(resource); - } - - /// - /// Retrieve Specified Resource Items as XResourceDto Presentation ... - /// - /// - /// - [AllowAnonymous] - [HttpGet("AsResource")] - public override async Task> GetResource( - [FromQuery] string resource - ) - { - return await base.GetResource(resource); - } - #endregion - - // - #region Query ... - /// - /// Query Resource IDs ... - /// - /// - /// - [AllowAnonymous] - [HttpGet("QueryResourceIds")] - public override ActionResult> QueryResourceIds( - [FromQuery] XQuery query - ) - { - return base.QueryResourceIds(query); - } - - /// - /// Query Specified Language Resources ... - /// - /// - /// - /// - [HttpGet("QueryLanguageResources")] - public override async Task>> QueryLanguageResources( - [FromQuery] XQuery query, - [FromQuery] string language = null // - ) - { - // - return await base - .QueryLanguageResources( - query: query, - language: language - ); - } - - /// - /// Query Locale Resources ... - /// - /// - /// - /// - [HttpGet("QueryLocaleResources")] - public override async Task>> QueryLocaleResources( - [FromQuery] XQuery query, - [FromQuery] string language = null // - ) - { - // - return await base - .QueryLocaleResources( - query: query, - language: language - ); - } - #endregion - - // - #region Add/Update Actions ... - /// - /// Add Specified Resource ... - /// - /// - /// - /// - /// - [HttpPost("Add")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> Add( - [FromQuery] string resource, - [FromQuery] string value, - [FromQuery] string language = null - ) - { - // - return await base - .Add( - value: value, - resource: resource, - language: language - ); - } - - /// - /// Update Resource ... - /// - /// - /// - /// - /// - [HttpPut("Update")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> Update( - [FromQuery] string resource, - [FromQuery] string value, - [FromQuery] string language = null - ) - { - // - return await base - .Update( - value: value, - resource: resource, - language: language - ); - } - - /// - /// Add Or Update Resource ... - /// - /// - /// - /// - /// - [HttpPost("AddOrUpdate")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> AddOrUpdate( - [FromQuery] string resource, - [FromQuery] string value, - [FromQuery] string language = null - ) - { - // - return await base - .AddOrUpdate( - value: value, - resource: resource, - language: language - ); - } - - /// - /// Add Specified Resource ... - /// - /// - /// - [HttpPost("AddModel")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> AddEntity( - [FromBody] XStringDto item - ) - { - return await base.AddEntity(item); - } - - /// - /// Update Specified Entity ... - /// - /// - /// - [HttpPut("UpdateModel")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> UpdateEntity( - [FromBody] XStringDto item - ) - { - return await base.UpdateEntity(item); - } - - /// - /// Add Or Update Specified Entitiy ... - /// - /// - /// - [HttpPost("AddOrUpdateModel")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> AddOrUpdateEntity( - [FromBody] XStringDto item - ) - { - return await base.AddOrUpdateEntity(item); - } - - /// - /// Add Specified Locale Resource ... - /// - /// - /// - /// - [HttpPost("AddLocale")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> AddByLocaleResource( - [FromBody] XLocaleResourceDto item, - [FromQuery] string resource - ) - { - // - return await base - .AddByLocaleResource( - item: item, - resource: resource - ); - } - - /// - /// Update Specified Locale Resource ... - /// - /// - /// - /// - [HttpPut("UpdateLocale")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> UpdateByLocaleResource( - [FromBody] XLocaleResourceDto item, - [FromQuery] string resource - ) - { - // - return await base - .UpdateByLocaleResource( - item: item, - resource: resource - ); - } - - /// - /// Add Or Update Resource By Locale ... - /// - /// - /// - /// - [HttpPost("AddOrUpdateLocale")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> AddOrUpdateByLocaleResource( - [FromBody] XLocaleResourceDto item, - [FromQuery] string resource - ) - { - // - return await base - .AddOrUpdateByLocaleResource( - item: item, - resource: resource - ); - } - - /// - /// Add Or Update all XResourceDto(s) Locales ... - /// - /// - /// - [HttpPost("AddResource")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task>> AddByResource( - [FromBody] XResourceDto item - ) - { - return await base.AddByResource(item); - } - #endregion - - // - #region Remove Actions ... - /// - /// Remove all Specified Language's Resources ... - /// - /// - /// - [HttpDelete("RemoveLanguage")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task RemoveLanguageResources( - [FromQuery] string language - ) - { - return await base.RemoveLanguageResources(language); - } - - /// - /// Remove all Specified Resource Ids instances ... - /// - /// - /// - [HttpDelete("RemoveLocales")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task>> RemoveResource( - [FromQuery] string resource - ) - { - return await base.RemoveResource(resource); - } - - /// - /// Remove Specified Resource ... - /// - /// - /// - /// - [HttpDelete("Remove")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> Remove( - [FromQuery] string resource, - [FromQuery] string language = null - ) - { - // - return await base - .Remove( - resource: resource, - language: language - ); - } - - /// - /// Remove all Resource of Specified XResourceDto ... - /// - /// - /// - [HttpPost("RemoveResource")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task RemoveByResource( - [FromBody] XResourceDto item - ) - { - // - return await base.RemoveByResource(item); - } - #endregion - #endregion - } -} \ No newline at end of file diff --git a/Controllers/V1/Services/TagsController.cs b/Controllers/V1/Services/TagsController.cs deleted file mode 100644 index 6c0f7dd..0000000 --- a/Controllers/V1/Services/TagsController.cs +++ /dev/null @@ -1,207 +0,0 @@ -using System.Collections.Generic; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Logging; -using xCommons.Attributes; -using xCommons.Configurations; -using xCommons.Providers; -using xIdentityHelper; -using xIdentityService.Interfaces; -using xModels.Dtos; -using xTagService.Controllers; -using xTagService.Interfaces; -using xTagService.Models.Dtos; - -namespace xApi.Controllers.V1.Services -{ - [ApiController] - [ApiVersion("1.0")] - [RequireXPowered(true)] - [Route("api/v{version:apiVersion}/services/[controller]")] - public class TagsController : XTagServiceControllerBase - { - // - #region Constructor ... - public TagsController( - ILogger logger, - IXTagProvider tagProvider, - XAppConfiguration appConfiguration, - IXIdentityProvider identityProvider, - XValidationProvider validationProvider - ) : base( - logger, - tagProvider, - appConfiguration, - identityProvider, - validationProvider - ) - { } - #endregion - - // - #region Actions ... - /// - /// Add Tag by Providing Dto ... - /// - /// - /// - [HttpPost("")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task> Add( - [FromBody] XTagDto model - ) - { - return await base.Add(model); - } - - /// - /// Update Specified Tag ... - /// - /// - /// - /// - [HttpPut("{id}")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task> Update( - [FromRoute] int id, - [FromBody] XTagDto model - ) - { - return await base.Update(id, model); - } - - /// - /// Remove Specified Tag by ID ... - /// - /// - /// - [HttpDelete("{id}")] - [Authorize(Policy = XPolicies.EnabledAdminOrAgent)] - public override async Task> Remove( - [FromRoute] int id - ) - { - return await base.Remove(id); - } - - /// - /// Retrieve Specified Tag Dto by ID ... - /// - /// - /// - [HttpGet("{id}")] - public override async Task> Get( - [FromRoute] int id - ) - { - return await base.Get(id); - } - - /// - /// Retrieve Specified Tag Dto by it's Label ... - /// - /// - /// - [HttpGet("GetTag")] - public override async Task> GetTag( - [FromQuery] string tag - ) - { - return await base.GetTag(tag); - } - - /// - /// Retrieve All Exists Tags ... - /// - /// - [HttpGet("All")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task>> GetAll() - { - return await base.GetAll(); - } - - /// - /// Search For Specified Tag by Providing a query on Label ... - /// - /// - /// - [HttpGet("FindOne")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task> FindOne( - [FromQuery] string query - ) - { - return await base.FindOne(query); - } - - /// - /// Search For Specified Tags By Providing Query on Labels ... - /// - /// - /// - [HttpGet("FindMany")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task>> FindMany( - [FromQuery] string query - ) - { - return await base.FindMany(query); - } - - /// - /// Retrieve Tags based on Query Model ... - /// - /// - /// - [HttpGet("Query")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task>> Query( - [FromQuery] XQuery query - ) - { - return await base.Query(query); - } - - /// - /// Count Exists Tags ... - /// - /// - [HttpGet("Count")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task> Count() - { - return await base.Count(); - } - - /// - /// Check Tag Exists by ID ... - /// - /// - /// - [HttpGet("{id}/IsExists")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task> IsExists( - [FromRoute] int id - ) - { - return await base.IsExists(id); - } - - /// - /// Check Tag Exists by Providing Label ... - /// - /// - /// - [HttpGet("IsTagExists")] - [Authorize(Policy = XPolicies.EnabledUser)] - public override async Task> IsTagExists( - [FromQuery] string tag - ) - { - return await base.IsTagExists(tag); - } - #endregion - } -} \ No newline at end of file diff --git a/Startup.cs b/Startup.cs index 2cb2fee..241cc14 100644 --- a/Startup.cs +++ b/Startup.cs @@ -22,16 +22,12 @@ using xDataService.Configuration; using xDataService.Constants; using xDataService.DI; using xDataService.Interfaces; -using xFileService.Hubs; using xHttpService.DI; using xIdentityService.DI; using xPushHelper.DI; using xPushService.DI; using xPushService.Helpers; using xServices.DI; -using xServices.TermsConditions.Push; -using xStringService.Hubs; -using xTagService.Hubs; namespace xApi { @@ -250,12 +246,6 @@ namespace xApi // var helper = new XPushServiceHelper(); - // - helper.AddHub("termsHub"); - helper.AddHub("tagEntityHub"); - helper.AddHub("fileEntityHub"); - helper.AddHub("stringEntityHub"); - // app.UseXPushService(helper); #endregion