Esempio n. 1
0
        public JsonResult GetSpeciality()
        {
            var getspecialityModel = _clPatientStatisticsDB.GetSpeciality();

            getspecialityModel.Add(new GenericListModel {
                id = 0, name = "ALL", text = "ALL"
            });

            var json = getspecialityModel.DefaultIfEmpty();

            return(Json(json, JsonRequestBehavior.AllowGet));
        }