public async Task <IActionResult> GetAccountTypes(bool sortForDropDownList)
        {
            try
            {
                return(Ok(await _repo.GetAccountTypes(sortForDropDownList)));
            }

            catch (Exception ex)
            {
                _logger.Write(LogEventLevel.Error, ex, "GetAccountTypes failed: {ex.message}");
                var returnResult = ex.InnerException?.InnerException?.Message ?? ex.Message;
                return(BadRequest(returnResult));
            }
        }