public async Task <IHttpActionResult> GetAll() { using (var uofw = CreateUnitOfWork) { var data = await _categoryService.GetAll(uofw).Select(x => new { ID = x.ID, Title = x.Title, x.Color, ImageID = x.Image != null ? (Guid?)x.Image.FileID : null, FileName = x.Image != null ? x.Image.FileName + x.Image.Extension : null, x.Description, x.RowVersion }).ToListAsync(); StoreHub.SayHello(); return(await WrapListViewResult(data, typeof(Category), uofw, _accessService)); } }
private void InitialiseHubs() { this.storeHub = new StoreHub(); }