Exemplo n.º 1
0
        public JsonResult ViewAllDepartmentsAjax()
        {
            pharmacy = new Pharmacy(_userName);
            List <DepartmentView> lstDepartments = pharmacy.ViewAllDepartments();
            var serealized = JsonConvert.SerializeObject(lstDepartments);

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