Blog.Web.Api.Controllers.SearchController.GetComments C# (CSharp) Method

GetComments() private method

private GetComments ( string query, int threshold = 5, int skip = 10 ) : Task>
query string
threshold int
skip int
return Task>
        private async Task<List<Comment>> GetComments(string query, int threshold = 5, int skip = 10)
        {
            var result = await Task.Run(() => _comments.SearchComments(query, threshold, skip));
            return result;
        }