Class LanguageController
- Namespace
- Oqtane.Controllers
- Assembly
- Oqtane.Server.dll
[Route("api/[controller]")]
public class LanguageController : Controller
- Inheritance
-
object
ControllerBase
Controller
LanguageController
Constructors
LanguageController(ILanguageRepository, ISyncManager, ILogManager, ITenantManager)
public LanguageController(ILanguageRepository languages, ISyncManager syncManager, ILogManager logger, ITenantManager tenantManager)
Parameters
languages
ILanguageRepository
syncManager
ISyncManager
logger
ILogManager
tenantManager
ITenantManager
Methods
Delete(int)
[HttpDelete("{id}")]
[Authorize(Roles = "Administrators")]
public void Delete(int id)
Parameters
id
int
Get(int)
[HttpGet("{id}")]
public Language Get(int id)
Parameters
id
int
Returns
- Language
Get(string, string)
[HttpGet]
public IEnumerable<Language> Get(string siteid, string packagename)
Parameters
siteid
string
packagename
string
Returns
- IEnumerable<Language>
Post(Language)
[HttpPost]
[Authorize(Roles = "Administrators")]
public Language Post(Language language)
Parameters
language
Language
Returns
- Language
Put(Language)
[HttpPut]
[Authorize(Roles = "Administrators")]
public void Put(Language language)
Parameters
language
Language