Example #1
0
        public ActionResult VesselList(string term)
        {
            var vessels = _vesselService.GetVessels(new GetVesselsRequest
            {
                Skip = 0,
                Take = 20,
                Term = term,
            }).Vessels;

            return(Json(new { results = vessels }, JsonRequestBehavior.AllowGet));
        }
Example #2
0
 public void GetDataRowCount(GridViewCustomBindingGetDataRowCountArgs e)
 {
     e.DataRowCount = _vesselService.GetVessels(new GetVesselsRequest {
         OnlyCount = true
     }).Count;
 }