Пример #1
0
        public async Task <bool> AssignItemToAuction(ItemDto item)
        {
            using (var uow = UnitOfWorkProvider.Create())
            {
                if (await itemService.GetAsync(item.Id, false) == null)
                {
                    return(false);
                }
                await itemService.AddItemToAuction(item);

                await uow.Commit();

                return(true);
            }
        }