public Task RegisterOrder(Order order) { //todo: is it good practice? _context.Add(order); _context.SaveChanges(); return(Task.FromResult(true)); }
public Task RegisterOrder(Order order) { _context.Add(order); _context.SaveChanges(); return(Task.FromResult(true)); }