Ejemplo n.º 1
0
        public IHttpActionResult FontType()
        {
            FontOperater operater  = new FontOperater();
            var          fontTypes = operater.GetFontTypes();

            return(Json(fontTypes));
        }
Ejemplo n.º 2
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
            }));
        }