Пример #1
0
        public IHttpActionResult Get(string applicationId, string langId)
        {
            applicationId.ThrowIfNullOrEmpty(nameof(applicationId));
            langId.ThrowIfNullOrEmpty(nameof(langId));

            var language = _business.GetLanguage(applicationId, langId);

            return(Ok(language));
        }
        public async Task <IActionResult> GetLanguage(int id)
        {
            var result = await _languageBusiness.GetLanguage(id);

            if (result != null)
            {
                return(Ok(result));
            }

            return(NotFound());
        }
Пример #3
0
        public async Task <IActionResult> Edit(int id)
        {
            var result = await _languageBusiness.GetLanguage(id);

            return(View(result));
        }