Skip to content

Instantly share code, notes, and snippets.

@tuannguyenssu
Created Jul 7, 2019
Embed
What would you like to do?
public class Cart
{
public void Checkout(int orderId, int userId)
{
Database db = new Database();
db.Save(orderId);
Logger log = new Logger();
log.LogInfo("Order has been checkout");
EmailSender es = new EmailSender();
es.SendEmail(userId);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment