Esempio n. 1
0
        public static List <T> GetList <T>(this HttpRequest request)
        {
            string jsonStr = request.GetForm <string>("List");

            return(jsonStr.FromJson <List <T> >());
        }
Esempio n. 2
0
        public static T GetEntity <T>(this HttpRequest request)
        {
            string jsonStr = request.GetForm <string>("Entity");

            return(jsonStr.FromJson <T>());
        }