public JsonResult GetAllDepartmentNames() { pharmacy = new Pharmacy(_userName); List <string> lstDepartments = pharmacy.GetAllDepartmentNames(); return(this.Json(lstDepartments, JsonRequestBehavior.AllowGet)); }