public PaginatedList <SubscriptionAttemptViewModel> View(
            [FromQuery(Name = "$filter")] string filter   = "",
            [FromQuery(Name = "$orderby")] string orderBy = "",
            [FromQuery(Name = "$top")] int top            = 100,
            [FromQuery(Name = "$skip")] int skip          = 0)
        {
            ODataHelper <SubscriptionAttemptViewModel> oDataHelper = new ODataHelper <SubscriptionAttemptViewModel>();

            var oData = oDataHelper.GetOData(HttpContext, oDataHelper);

            return(repository.FindAllView(oData.Predicate, oData.PropertyName, oData.Direction, oData.Skip, oData.Take));
        }
        public async Task <IActionResult> View(
            [FromQuery(Name = "$filter")] string filter   = "",
            [FromQuery(Name = "$orderby")] string orderBy = "",
            [FromQuery(Name = "$top")] int top            = 100,
            [FromQuery(Name = "$skip")] int skip          = 0)
        {
            try
            {
                ODataHelper <SubscriptionAttemptViewModel> oDataHelper = new ODataHelper <SubscriptionAttemptViewModel>();
                var oData = oDataHelper.GetOData(HttpContext, oDataHelper);

                return(Ok(_repository.FindAllView(oData.Predicate, oData.PropertyName, oData.Direction, oData.Skip, oData.Take)));
            }
            catch (Exception ex)
            {
                return(ex.GetActionResult());
            }
        }