public static void UpdateItem(APIFSOrder e) { var editModel = APIFSOrderList.GetData().First(i => i.Code == e.Code); editModel.Code = e.Code; editModel.FoodService = e.FoodService; editModel.CustomerPhone = e.CustomerPhone; editModel.SupportPhone = e.SupportPhone; editModel.OrderDate = e.OrderDate; editModel.Status = e.Status; }
public static void DeleteItem(decimal e) { var deleteItemCategory = APIFSOrderList.GetData().First(i => i.Code == e); APIFSOrderList.GetData().Remove(deleteItemCategory); }