public int GetLegacyProductId(string Activity_Flavour_Id) { using (BL_Activity obj = new BL_Activity()) { return(obj.GetLegacyProductId(Guid.Parse(Activity_Flavour_Id))); } }