Esempio n. 1
0
        public JsonResult GetMonthlyMedicineReport(string medicineName)
        {
            pharmacy = new Pharmacy(_userName);
            List <MedicineReportView> medicines  = pharmacy.GetMedicineMonthlyReport(medicineName);
            JavaScriptSerializer      serializer = new JavaScriptSerializer();
            var serealized = JsonConvert.SerializeObject(medicines);

            return(this.Json(serealized, JsonRequestBehavior.AllowGet));
        }