public ActionResult Conversion(int ID)
 {
     ViewBag.Products = ProductLogic.GetFinishedProducts();
     if (ID > 0)
     {
         var conversion = ProductLogic.GetConversionByID(ID).FirstOrDefault();
         ViewBag.FromShades   = ShadeLogic.GetShadeByProductID(conversion.FromProductId);
         ViewBag.FromPackings = PackingLogic.GetPackingByProductID(Convert.ToInt32(conversion.FromProductId));
         if (conversion.FromProductId == conversion.ToProductId)
         {
             ViewBag.ToShades = ViewBag.FromShades;
         }
         else
         {
             ViewBag.ToShades = ShadeLogic.GetShadeByProductID(conversion.ToProductId);
         }
         ViewBag.ToPackings = ViewBag.FromPackings;
         return(View(conversion));
     }
     else
     {
         var conversion = new ProductConversion();
         conversion.DocNo = ProductLogic.GetNewConverstionDocNo();
         return(View(conversion));
     }
 }