public StudentParentDetail GetStudentDetailByUid(string StudentUid) { StudentParentDetail ObjStudentParentDetail = new StudentParentDetail(); String ResultSet = null; DbParam[] param = new DbParam[] { new DbParam(StudentUid, typeof(System.String), "_StudentUid"), new DbParam(userDetail.schooltenentId, typeof(System.String), "_TenentId") }; DataSet ds = db.GetDataset("sp_ParentDetail_ByStudentUid", param); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { ObjStudentParentDetail = userDefineMapping.ConvertToObject(ds.Tables[0], ObjStudentParentDetail.GetType(), out ResultSet) as StudentParentDetail; if (ResultSet != "100") { return(null); } } return(ObjStudentParentDetail); }
public Clients GetClientDetailByUid(string ExistingClientUid) { Clients ClientResult = null; String ResultSet = null; ClientResult = new Clients(); DbParam[] param = new DbParam[] { new DbParam(ExistingClientUid, typeof(System.String), "_clientUid"), new DbParam(userDetail.schooltenentId, typeof(System.String), "_tenentUid") }; DataSet ds = db.GetDataset("sp_Client_ByUid", param); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { ClientResult = userDefineMapping.ConvertToObject(ds.Tables[0], ClientResult.GetType(), out ResultSet) as Clients; if (ResultSet != "100") { return(null); } } return(ClientResult); }