コード例 #1
0
        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
            }));
        }
コード例 #2
0
        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
            }));
        }
コード例 #3
0
        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
            }));
        }