public ViewResult ViewDemandAggregationDetails(string onBasis, string value, DemandAggregationSearchItems search) { IList <DemandAggregationDetailsViewModel> data = new List <DemandAggregationDetailsViewModel>(); var user = HttpContext.Session.Get <UserViewModel>(Constants.SessionKeyUserInfo); user = user ?? new UserViewModel(); try { data = dashboardHandler.ViewDemandAggregationDetails(onBasis, value, search); } catch (DataNotUpdatedException ex) { Logger.Logger.WriteLog(Logger.Logtype.Error, ex.Message, user.UserId, typeof(DashboardController), ex); } return(View(data)); }