//[HttpPost] //public JsonResult Delete(int id) //{ // string template = ""; // ResponseModel response = new ResponseModel(true); // owner dbItem = RepoOwner.FindByPk(id); // RepoOwner.Delete(dbItem); // return Json(response); //} #region owner user public string BindingUser() { //kamus GridRequestParameters param = GridRequestParameters.Current; List <owner_user> items = RepoOwner.FindAllUser(param.Skip, param.Take, (param.Sortings != null ? param.Sortings.ToList() : null), param.Filters); int total = RepoOwner.CountUser(param.Filters); return(new JavaScriptSerializer().Serialize(new { total = total, data = new OwnerPresentationStub().MapListUser(items) })); }