/// <summary> /// Function to get the next id for AdditionalCost table /// </summary> /// <returns></returns> public int UserGetMax() { UserSP spUser = new UserSP(); int inMax = 0; try { inMax = spUser.UserGetMax(); } catch (Exception ex) { MessageBox.Show("UBLL1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(inMax); }