Removed Login_Required from Language

Added login in Swagger
Bug Fixed
This commit is contained in:
CMS3762\carminatini
2018-01-09 14:17:28 +01:00
parent 1cf7a41280
commit be173af2dd
6 changed files with 263 additions and 200 deletions
@@ -13,7 +13,6 @@ namespace Step.Controllers.WebApi
[RoutePrefix("api/language")]
public class LanguageController : ApiController
{
[WebApiAuthorize(FunctionAccess = "test", Action = ACTIONS.READ)]
[Route("languages"), HttpGet]
public IHttpActionResult GetLanguageList()
{
@@ -23,8 +22,7 @@ namespace Step.Controllers.WebApi
return Ok(availableLanguages);
}
[WebApiAuthorize(FunctionAccess = "test", Action = ACTIONS.READ)]
[Route("{language}"), HttpGet()]
public IHttpActionResult GetTranslations(string language)
{
+4 -2
View File
@@ -24,8 +24,10 @@ namespace Step.Controllers.WebApi
stop.Start();
try
{
using( NcHandler ncHandler = new NcHandler()) {
genericData = ncHandler.GetNcGenericData();
using (NcHandler ncHandler = new NcHandler())
{
ncHandler.Connect();
genericData = ncHandler.GetNcGenericData();
}
}
catch (Exception ex)