public async Task UpdateBidAsync(Models.Bid bid) { await Task.Run(async() => { _bidRepository.Configure(); var bidDAL = await _bidRepository.GetByIdBidAsync(bid.Id); bidDAL.InjectFrom(bid); await _bidRepository.UpdateBidAsync(bidDAL); }); }