public ActionResult SaveText([FromBody] StaticTextViewModel viewModel) { var username = GetUserName(); var modificationUpdate = m_staticTextManager.SaveText(viewModel.Name, viewModel.Text, viewModel.Format, username); return(Json(modificationUpdate)); }
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)); }