public CMSResponse CMSAPIResponse(CMSRequest objRequest) { try { objcmsResponse.CMSDashboardGrid = objclsDashboard.GetCMSData(objRequest.DateTime, objRequest.EndDateTime, objRequest.CMSStatus, objRequest.PartnerID, objRequest.productcode); return(objcmsResponse); } catch (Exception) { return(objcmsResponse); } finally { objcmsResponse = null; objclsDashboard = null; } }