public ActionResult GenderUpdate([DataSourceRequest] DataSourceRequest request, GenderItem genderItem) { if (genderItem != null && ModelState.IsValid) { service.UpdateGender(genderItem); } return(Json(new[] { genderItem }.ToDataSourceResult(request, ModelState))); }