public async Task <IActionResult> Index(int?sortingType, string currencyParam, double?minAmount, double?maxAmount, int?periodFrom, int?periodTo, double?maxPercent, bool?isRecomendation, bool?isLikeCredits)
        {
            List <CreditModel> creditModelList;

            //if (sortingType.HasValue)
            //{
            if (isRecomendation.HasValue && isRecomendation.Value)
            {
                return(View(await _recomendation.GetRecomendationCredits(_userManager.GetUserAsync(HttpContext.User).Result.Id)));
            }
            creditModelList = await creditService.GetAllAsync(new Dictionary <string, object>() { { "sortingType", sortingType },
                                                                                                  { "currencyParam", currencyParam },
                                                                                                  { "minAmount", minAmount },
                                                                                                  { "maxAmount", maxAmount },
                                                                                                  { "periodFrom", periodFrom },
                                                                                                  { "periodTo", periodTo },
                                                                                                  { "maxPercent", maxPercent },
                                                                                                  { "isForBusiness", User.IsInRole("Business") },
                                                                                                  { "isLikeCredits", isLikeCredits },
                                                                                                  { "userId", _userManager.GetUserAsync(HttpContext.User).Result.Id } });

            //}
            //else
            //    creditModelList = await creditService.GetAllAsync();
            return(View(creditModelList));
        }