Skip to content

Instantly share code, notes, and snippets.

@nunofilipecosta
Created July 30, 2014 07:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nunofilipecosta/394b10956a3ec11b2991 to your computer and use it in GitHub Desktop.
Save nunofilipecosta/394b10956a3ec11b2991 to your computer and use it in GitHub Desktop.
After save , if it doesn't exists throw exception
var transportOrder = _appService.FindById<TransportOrder>(transportOrderId);
transportOrder.ReceiveLoadGuid = closedLoadId;
Save(transportOrder);
if (transportOrder == null)
{
throw new ArgumentNullException("transportOrderId");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment