public IActionResult CreateOrder(Order order) { IActionResult res = Ok(); if (!DBAccess.AddOrder(order)) { res = NotFound(DBAccess.errormeme); } return(res); }