public static string WMUpdateHQStock(object objHQ) { string HQQty = ""; iPartIssueClient objService = new iPartIssueClient(); try { Dictionary <string, object> dictionary = new Dictionary <string, object>(); dictionary = (Dictionary <string, object>)objHQ; CustomProfile profile = CustomProfile.GetProfile(); POR_SP_GetPartDetails_OfMIN_Result IssuePart = new POR_SP_GetPartDetails_OfMIN_Result(); IssuePart.Sequence = Convert.ToInt64(dictionary["Sequence"]); IssuePart.IssuedQty = Convert.ToDecimal(dictionary["IssuedQty"]); HQQty = objService.UpdateHQStock_TempData(HttpContext.Current.Session.SessionID, ObjectName, profile.Personal.UserID.ToString(), IssuePart, profile.DBConnection._constr); } catch { } finally { objService.Close(); } return(HQQty); }