public async Task <IHttpActionResult> GetEntityMaster(int id) { var entity = await _EntityService.GetEntity(id); if (entity.Id <= 0) { return(NotFound()); } return(Ok(entity)); }
private void LoadGrid() { DSAddress.Bindings.Add(new Sage.Platform.WebPortal.Binding.WebEntityListBinding("Addresses", AddressGrid)); DSAddress.SourceObject = EntityService.GetEntity(); AddressGrid.DataBind(); }