public JsonResult GetOBOChildUsersForMessaging(string UserCode) { DataControl.CurrentInfo objCurInfo = new DataControl.CurrentInfo(); DataControl.BLMessaging objMsg = new DataControl.BLMessaging(); DataControl.JSONConverter objJson = new DataControl.JSONConverter(); List <MVCModels.HiDoctor_Master.UserModel> lstUser = new List <MVCModels.HiDoctor_Master.UserModel>(); //if (string.IsNullOrEmpty(UserCode)) string LoggingUserCode = objCurInfo.GetUserCode(); lstUser = (List <MVCModels.HiDoctor_Master.UserModel>)objMsg.GetUsersForOBOMessaging(objCurInfo.GetCompanyCode(), UserCode, LoggingUserCode); string msgStartingUserType = string.Empty; return(Json(objJson.Serialize(lstUser))); }