public override async Task <ActionResult> HandleAsync([FromBody] UpdatePurchaseItemRequest request, CancellationToken cancellationToken = default) { var PurchaseItem = new PurchaseItem { Id = request.Id, ProductId = request.ProductId, PurchaseId = request.PurchaseId, UOM = (Core.UnitOfMeasure)request.UOM, Notes = request.Notes, Price = request.Price, Quantity = request.Quantity }; _repo.UpdatePurchaseItem(PurchaseItem); await _repo.Save(); return(Ok(PurchaseItem)); }