Exemple #1
0
        /// <summary>Created by Roshan
        /// To bind the location drop down on the qrc page
        /// </summary>
        /// <param name="LocationType"></param>
        /// <returns></returns>
        public JsonResult GetLocationByManagerID(string userId)
        {
            long lManagerId = 0;

            if (!string.IsNullOrEmpty(userId))
            {
                long.TryParse(userId, out lManagerId);
                List <SelectListItem> lstLocation = _ICommonMethod.GetLocationByManagerIdForDdl(lManagerId);

                return(Json(lstLocation, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json(null, JsonRequestBehavior.AllowGet));
            }
        }