public async Task <IActionResult> Activity_ProductList(int aid) { TranStatus transaction = new TranStatus(); Dictionary <String, Object> dctData = new Dictionary <string, object>(); HttpStatusCode statusCode = HttpStatusCode.OK; try { var activityList = await iactivity.Activity_ProductList(aid); dctData.Add("Activity_ProductList", activityList); } catch (Exception ex) { transaction = CommonHelper.TransactionErrorHandler(ex); statusCode = HttpStatusCode.BadRequest; } dctData.Add("Status", transaction); return(this.StatusCode(Convert.ToInt32(statusCode), dctData)); }