public static decimal WMGetTotal() { iPartRequestClient objService = new iPartRequestClient(); decimal tot = 0; try { CustomProfile profile = CustomProfile.GetProfile(); POR_SP_GetPartDetail_ForRequest_Result PartRequest = new POR_SP_GetPartDetail_ForRequest_Result(); tot = objService.GetTotalFromTempData(HttpContext.Current.Session.SessionID, ObjectName, profile.Personal.UserID.ToString(), profile.DBConnection._constr); } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, "PartRequestEntry.aspx", "WMGetTotal"); } finally { objService.Close(); } return(tot); }