public ActionResult Stockes()
        {
            var concernId = Convert.ToInt32(Session["ConcernId"]);
            var userId    = Convert.ToInt32(Session["UserId"]);

            if (concernId > 0 && userId > 0)
            {
                var stock = _stock.GeneralStocks();
                ResponseStocksViewModels viewModels = new ResponseStocksViewModels()
                {
                    ResponseStocks = stock
                };
                return(View(viewModels));
            }
            return(RedirectToAction("LogIn", "GlobalData", new { Area = "Global" }));
        }
        public ActionResult ProductionChange(int id)
        {
            decimal value     = 0;
            var     quantity  = _stock.GeneralStocks();
            var     order     = _context.ProductionOrders.FirstOrDefault(m => m.ProductionOrderId == id);
            var     materials = _context.OrderRawMaterials.FirstOrDefault(m => m.OrderId == id);

            foreach (var item in quantity)
            {
                if (item.ProductCode == order.ProductCode)
                {
                    value = item.Quantity;
                }
            }
            if (value >= materials.Quantity)
            {
                _production.ProductionChange(id);
                return(RedirectToAction(nameof(ProductionProces)));
            }
            else
            {
                return(RedirectToAction(nameof(ProductionOrder)));
            }
        }