1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace SourceBrowser.Site.Controllers
{
    public class SearchController : Controller
    {
        // GET: Search
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Repository(string username, string repository, string query)
        {
            var results = Search.SearchIndex.SearchRepository(username, repository, query);
            var json = Json(results);
            return json;
        }
    }
}