Esempio n. 1
0
        public Response <Language> Post([FromBody] Language value)
        {
            var service = new Services.Localization.LanguageService(Context, CurrentUser);

            LogService.Write("Create Language", string.Format("Name:{0};ID:{1}", value.Name, value.LanguageId));

            return(new Response <Language>(service.CreateLanguage(value)));
        }
Esempio n. 2
0
        public Response <Language> Update([FromBody] Language language)
        {
            var service = new Services.Localization.LanguageService(Context, CurrentUser);

            LogService.Write("Update Language", string.Format("Name:{0};ID:{1}", language.Name, language.LanguageId));

            return(new Response <Language>(service.Update(language)));
        }
Esempio n. 3
0
        public Response <Language> Get()
        {
            var service = new Services.Localization.LanguageService(Context, CurrentUser);

            return(new Response <Language>(service.GetLanguages()));
        }