public ActionResult GenericAttribute_Read(DataSourceRequest command, string locator) { var genericAttribute = _genericAttributeService.GetAllGenericAttributes(command.Page - 1, 10, locator); var gridModel = new DataSourceResult { Data = genericAttribute.Select(x => new GenericAttribute { Id = x.Id, EntityKey = locator, EntityValue = x.EntityValue }), Total = genericAttribute.TotalCount }; return(Json(gridModel)); }