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