title: implementing jTable MVC 4
body: <p>I have following </p>
  
  <p><em><strong></em>**<em>*</em>***<em></strong> controller <strong></em>**<em>*</em>**<em>*</em>**<em>*</em>**</strong></p>
  
  <pre><code>namespace DLM.Controllers{
  public class BooksController : Controller
  {
  
      private IRepositoryContainer _repository;
      //
      // GET: /Books/
      public ActionResult Index()
      {
          return View();
      }
  
  
      [HttpPost]
      public JsonResult ListBooks(int jtStartIndex = 0, int jtPageSize = 0, string jtSorting = null)
      {
          try
          {
              //Get data from database
              int bookCount = _repository.BookRepository.GetBooksCount();
              List&lt;Books&gt; book = _repository.BookRepository.GetBooks(jtStartIndex, jtPageSize, jtSorting);
  
              //Return result to jTable
              return Json(new { Result = "OK", Records = book, TotalRecordCount = bookCount });
          }
          catch (Exception ex)
          {
              return Json(new { Result = "ERROR", Message = ex.Message });
          }
      }
  </code></pre>
  
  <p><em><strong></em>**<em>*</em>**<em></strong> ListBooks View <strong></em>**<em>*</em>**<em>*</em>**<em>*</em>***</strong></p>
  
  <pre><code>{
  @Styles.Render("~/Scripts/jtable/jtable.2.3.0/themes/metro/darkgray/jtable.min.css") 
  &lt;script src="/Scripts/jtable/jtable.2.3.0/jquery.jtable.min.js" type="text/javascript"&gt;&lt;/script&gt;
  
  &lt;div id="BookTableContainer"&gt;&lt;/div&gt;
  
  
  &lt;script type="text/javascript"&gt;
  
      $(document).ready(function () {
  
          $('#BookTableContainer').jtable({
              title: 'The Student List',
              paging: true, //Enable paging
              pageSize: 10, //Set page size (default: 10)
              sorting: true, //Enable sorting
              defaultSorting: 'Book Title ASC', //Set default sorting
              actions: {
                  listAction: '/Books/Index',
                  deleteAction: '/Books/DeleteBook',
                  updateAction: '/Books/UpdateBook',
                  createAction: '/Books/AddBook'
              },
              fields: {
                  BooksID: {
                      key: true,
                      create: false,
                      edit: false,
                      list: false
                  },
                  Code_No: {
                      title: 'Book Code',
                      width: '23%'
                  },
                  Title: {
                      title: 'Book Title',
                      list: false
                  },
                  Author: {
                      title: 'Author',
  
                      list: false
                  },
                  Page_No: {
                      title: 'Number of Pages',
                      width: '13%'
  
                  },
                  Y_of_P: {
                      title: 'Year of Publication',
                      width: '12%'
  
                  },
                  Language: {
                      title: 'Language',
                      width: '15%'
  
                  },
                  Subject: {
                      title: 'Subject',
                      list: false
  
                  },
  
                  Publisher: {
                      title: 'Publisher',
  
                      list: false
                  },
                  Keyword: {
                      title: 'Keywords',
                      type: 'textarea',
                      width: '12%',
                      sorting: false
                  }
  
              }
  
          });
  
          //Load student list from server
          $('#BookTableContainer').jtable('load');
      });
  
  &lt;/script&gt;
  
  }
  </code></pre>
  
  <p><em><strong></em> ISSUE <em>*</em>**<em>*</em>**<em>*</em>**<em>*</em>**<em>*</em>****</strong></p>
  
  <p>When I am trying to access  <code>/Books/ListBooks</code>
  There is an error <code>The resource cannot be found.</code></p>
  
  <p>Please help me out i am new to jTable and it's implementation.</p>