예제 #1
0
        public ActionResult SaveText([FromBody] StaticTextViewModel viewModel)
        {
            var username           = GetUserName();
            var modificationUpdate = m_staticTextManager.SaveText(viewModel.Name, viewModel.Text, viewModel.Format, username);

            return(Json(modificationUpdate));
        }
예제 #2
0
        public ActionResult SaveText([FromBody] EditStaticTextViewModel viewModel)
        {
            var username = GetUserName();
            var culture  = m_localizationService.GetRequestCulture();

            var modificationUpdate = m_staticTextManager.SaveText(viewModel.Name, viewModel.Scope, viewModel.Text, culture.Name, viewModel.Format, username);

            return(Json(modificationUpdate));
        }