public ActionResult GetList(string name, int currentRecord, int numberRecord, string propertyNameSort, bool descending) { var total = 0; var list = productAttributeRepository.GetList(out total, name, currentRecord, numberRecord, propertyNameSort, descending); return(Json(new { total = total, list = list }, JsonRequestBehavior.AllowGet)); }