public IResult GetChartDetails(int showType) { var result = new Result { Operation = Operation.Read, Status = Status.Success }; try { ChartViewModel chartViewModel = new ChartViewModel(); chartViewModel.Series = _approvalRepository.GetSeriesDetail(showType); result.Body = chartViewModel; } catch (Exception e) { result.Message = e.Message; result.Status = Status.Error; } return(result); }