public JsonResult EditLanguages(ProfileLanguagesJson jsonProfileLanguages) { jsonProfileLanguages.TrimAndUppercaseFirst(); var updatingLanguages = _languageMapper.FromProfileLanguagesJsonModel(jsonProfileLanguages.ProfileId, jsonProfileLanguages); var updatedLanguages = _languageProvider.UpdateLanguages(updatingLanguages); ProfileLanguagesJson updatedLanguagesJson = _languageMapper.ToProfileLanguagesJsonModel(jsonProfileLanguages.ProfileId, updatedLanguages); return(Json(updatedLanguagesJson, JsonRequestBehavior.AllowGet)); }