public IHttpActionResult Word(string search) { FontOperater operater = new FontOperater(); var fonts = operater.GetFonts(search); return(Json(fonts, new Newtonsoft.Json.JsonSerializerSettings { NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore })); }
public IHttpActionResult FontDetail(int typeId) { FontOperater operater = new FontOperater(); var fonts = operater.GetFonts(typeId); return(Json(fonts, new Newtonsoft.Json.JsonSerializerSettings { NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore })); }
public IHttpActionResult FontDetail(string type) { FontOperater operater = new FontOperater(); FontType[] types = operater.GetFontTypes().ToArray(); FontType font = (from item in types where item.TypeName == type select item).FirstOrDefault(); var fonts = operater.GetFonts(font.TypeId); return(Json(fonts, new Newtonsoft.Json.JsonSerializerSettings { NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore })); }