diff --git a/Controllers/OSController.cs b/Controllers/OSController.cs deleted file mode 100644 index ed9acc7..0000000 --- a/Controllers/OSController.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Logging; -using xAiApi.Helpers; -using xCommons.Configurations; -using xCommons.Controllers; -using xCommons.Extensions; -using xCommons.Providers; -using xIdentityHelper; - -namespace xAiApi.Controllers -{ - public class OSController : XBaseController - { - public OSController( - ILogger logger, - XAppConfiguration appConfiguration, - XValidationProvider validationProvider - ) : base( - logger, - appConfiguration, - validationProvider - ) - { } - - // - #region Actions ... - /// - /// Get OS Type ... - /// - /// - [HttpGet("OSType")] - [Authorize(Policy = XPolicies.Admin)] - public ActionResult GetOSType() - { - // - // Do ... - try - { - // - var osType = XOsHelper.GetOSType(); - var result = osType.GetStringValue(); - - // - return Ok(result); - } - catch (Exception ex) - { - // - var result = GetExceptionActionResult(ex); - return result; - } - } - - /// - /// Get OS Description ... - /// - /// - [HttpGet("OSDescription")] - [Authorize(Policy = XPolicies.Admin)] - public ActionResult GetOSDescription() - { - // - // Do ... - try - { - // - var result = XOsHelper.GetOSDescription(); - - // - return Ok(result); - } - catch (Exception ex) - { - // - var result = GetExceptionActionResult(ex); - return result; - } - } - #endregion - } -} \ No newline at end of file diff --git a/Helpers/XOllamaHelper.cs b/Helpers/XOllamaHelper.cs index c4da791..5c5d23c 100644 --- a/Helpers/XOllamaHelper.cs +++ b/Helpers/XOllamaHelper.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using xCommons.Extensions; +using xCommons.Helpers; namespace xAiApi.Helpers {