public ActionResult Delete_order(int id) { var res = logic_operations.Delete_order(id); if (res.res == null) { return(NotFound()); } return(Ok(new { status = res.status, message = status_list[res.status] })); }
public ActionResult Delete_order(int id) { var res = logic_operations.Delete_order(id); if (res.res == null) { return(NotFound()); } return(Ok($"status: {res.status} " + $"message: {status_list[res.status]}")); }