public ActionResult Details(PolishDestashModel polish)
 {
     using (var db = new PolishWarehouseEntities())
     {
         try
         {
             polish.Save();
             polish.DestashPolish();
             TempData["Messages"] = "Polish Saved!";
         }
         catch (Exception ex)
         {
             TempData["Errors"] = "Error: " + ex.Message;
         }
         return(RedirectToAction("DestashDetails"));
     }
 }
        public ActionResult DestashPolish(PolishDestashModel model)
        {
            try
            {
                var resp = model.DestashPolish();
                if (resp.WasSuccessful)
                {
                    TempData["Messages"] = "Polish destashed!";
                }
                else
                {
                    TempData["Errors"] = resp.Message;
                }
            }
            catch (Exception ex)
            {
                TempData["Errors"] = ex.Message;
            }

            return(RedirectToAction("Index"));
        }