コード例 #1
0
        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;
        }
コード例 #2
0
        public static void DeleteItem(decimal e)
        {
            var deleteItemCategory = APIFSOrderList.GetData().First(i => i.Code == e);

            APIFSOrderList.GetData().Remove(deleteItemCategory);
        }