Пример #1
0
        public JsonResult BtCount()
        {
            context = HttpContext.RequestServices.GetService(typeof(BCare.data.BcareContext)) as BcareContext;
            String cookie = Request.Cookies["Session"];

            if (cookie != null)
            {
                List <Tuple <string, int> > listHMO = context.UserBloodTestByDateStats(Int32.Parse(cookie.Substring(10)));
                return(Json(listHMO));
            }
            return(Json(""));
        }