public IActionResult PlaceOrder(OrderFinalDetails details) { service = new ProductserviceController(); int invoiceId = service.PlaceOrder(details); return(Ok(invoiceId)); }
public OnlineShoppintTests() { logger = new NullLogger <AdminController>(); context = new OnlineShoppingDbContext(); controller = new SearchServiceController(context); controller1 = new AdminController(logger); proservice = new ProductserviceController(); controllerservice = new AdminServiceController(); }