///<summary>Returns the Medicaid ID Length for a given abbreviation.</summary> public static int GetMedicaidIDLength(string abbr) { //No need to check RemotingRole; no call to db. StateAbbr stateAbbr = GetFirstOrDefault(x => x.Abbr.ToLower() == abbr.ToLower()); return(stateAbbr == null ? 0 : stateAbbr.MedicaidIDLength); }
///<summary></summary> public static void Update(StateAbbr stateAbbr) { if (RemotingClient.RemotingRole == RemotingRole.ClientWeb) { Meth.GetVoid(MethodBase.GetCurrentMethod(), stateAbbr); return; } Crud.StateAbbrCrud.Update(stateAbbr); }
///<summary></summary> public static long Insert(StateAbbr stateAbbr) { if (RemotingClient.RemotingRole == RemotingRole.ClientWeb) { stateAbbr.StateAbbrNum = Meth.GetLong(MethodBase.GetCurrentMethod(), stateAbbr); return(stateAbbr.StateAbbrNum); } return(Crud.StateAbbrCrud.Insert(stateAbbr)); }