public ActionResult UpdateFont(int id, string family, string tags) { FontRecord newFont = new FontRecord() { }; newFont.Id = id; newFont.Family = family; newFont.Priority = 0; int i = 0; if (tags != null) { string[] stringSeparators = new string[] { "," }; string[] separatedTags; string resultTags = "["; separatedTags = tags.Split(stringSeparators, StringSplitOptions.None); foreach (var item in separatedTags) { if (i != 0) { resultTags = resultTags + ","; } resultTags = resultTags + "\"" + item + "\""; i++; } resultTags += "]"; newFont.Tags = resultTags; } _fontService.EditFont(newFont); Services.Notifier.Information(T("The font has been updated.")); return(RedirectToAction("FontList")); }