GetEntity() публичный Метод

public GetEntity ( object key ) : Entity,
key object
Результат Entity,
Пример #1
0
        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();
 }