示例#1
0
		public static ActionResult SendHtmlFromResource(this HttpListenerResponse response, ResourceStringResponse r)
		{
			ResourceManager rm = new ResourceManager(r.ResourceType);
			//get string resource
			r.Content = rm.GetString(r.ResourceName);
			return response.SendHtml(r);
		}
示例#2
0
        public static ActionResult SendHtmlFromResource(this HttpListenerResponse response, ResourceStringResponse r)
        {
            ResourceManager rm = new ResourceManager(r.ResourceType);

            //get string resource
            r.Content = rm.GetString(r.ResourceName);
            return(response.SendHtml(r));
        }