Ejemplo n.º 1
0
        public JsonResult GetMedicinesAjax()
        {
            pharmacy = new Pharmacy(_userName);
            List <MedicineView>  medicines  = pharmacy.GetMedicinesAjax();
            JavaScriptSerializer serializer = new JavaScriptSerializer();
            var serealized = JsonConvert.SerializeObject(medicines);

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