Example #1
0
        /// <summary>
        /// Load Worker DropDownList Asynchronously
        /// </summary>
        /// <returns>Data in JSON</returns>
        public JsonResult LoadWorkerListAjax(int caseID)
        {
            var worker = workerRepository.FindAllForAssignmentByCaseID(caseID);//.Select(item => new { ID = item.ID, Name = item.FirstName + " " + item.LastName });

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