public ActionResult SetOnLike(int id, string obs) // Method responsible for change the status to 'Standby_Picked'
        {
            using (Model context = new Model())
            {
                List<ProductOrder> productOrder = context.ProductOrder.Where(x => x.ProductId == id && x.Observations == obs).ToList(); // Try to find the product with the id and observation given

                foreach (var item in productOrder)
                {
                    item.Status = Status.Standby_Picked; // Set status to 'Standby_Picked' and save changes
                }

                context.SaveChanges();
            }

            return Json(true);
        }
        public ActionResult ResetWaitingPickup() // Support method to reset the status to Waiting_For_Picking
        {
            using (Model context = new Model())
            {
                var allProductOrder = context.ProductOrder.ToList();

                foreach (var item in allProductOrder)
                {
                    item.Status = Status.Waiting_For_Picking; // Set status to 'Waiting_For_Picking' and save changes
                }

                context.SaveChanges();
            }

            return Json(true);
        }
        public ActionResult ConfirmStatus(List<ProductOrder> products) // Method responsible to confirm the status of the product after final evaluation
        {
            if (products != null)
            {
                using (Model context = new Model())
                {
                    foreach (var listItem in products)
                    {
                        var productOrder = context.ProductOrder
                            .Where(x => x.ProductId == listItem.ProductId
                                && x.Observations == (listItem.Observations == null ? "" : listItem.Observations)) // Find product with id and observation given
                            .ToList();

                        foreach (var singleItem in productOrder)
                        {
                            singleItem.Status = listItem.Status; // Save it with new status
                        }
                    }

                    context.SaveChanges();
                }
            }

            return Json(true);
        }