If you want us to help you fix an error, then you need to tell us what your error is.
At a guess, you're getting an error on the
var stockTransfertDtail
line because you're trying to
await
something which isn't awaitable. The
Where
extension method returns an
IQueryable<T>
, not a
Task<T>
. You need to add
.ToListAsync()
to that line:
var stockTransfertDtail = await _context.StockTransfertDetail.Where(w => w.StockTransfertId == id).ToListAsync();
However, it's not clear why you're loading that list, since you're not doing anything with it.
If that's not the problem, then you need to update your question to include the full details of the error you're getting.