public static bool UpdateAmount(int id, int amount) { return(DalHelper.UpdateColumnById(id, "OrderDetails", "ID", "" + amount, "Amount")); }
public static bool UpdateProductAmountAtShop(int Id, int ReplaceAmount, string TotalAmountTableName, string TotalAmountColumn, string idColumnName) { return(DalHelper.UpdateColumnById(Id, TotalAmountTableName, idColumnName, ReplaceAmount.ToString(), TotalAmountColumn)); }
public static bool UpdateReadyTime(DateTime readyTime, int orderId) { string stringReadyTime = $"#{readyTime.ToString()}#"; return(DalHelper.UpdateColumnById(orderId, "Orders", "ID", stringReadyTime, "ReadyTime")); }
public static bool UpdateStatus(int status, int orderId) { string stringStatus = (status.ToString()); return(DalHelper.UpdateColumnById(orderId, "Orders", "ID", stringStatus, "OrderStutus")); }
public static bool UpdateArrivalTime(DateTime arrivalTime, int orderId) { string stringArrivalTime = $"#{arrivalTime.ToString()}#"; return(DalHelper.UpdateColumnById(orderId, "Orders", "ID", stringArrivalTime, "ArrivalTime")); }
public static bool UpdateDelivery(int orderId, string deliveryId) { return(DalHelper.UpdateColumnById(orderId, "Orders", "ID", deliveryId, "DeliverID")); }