public ActionResult UpdateDelete(RawItemPriceUpdateViewModel RIPViewModel, string command)
        {
            UserSession user       = (UserSession)Session["User"];
            string      PageAction = "";
            bool        result     = false;

            if (Request.Files.Count > 0)
            {
                HttpPostedFileBase file = Request.Files["FileUploaded"];
                if ((file != null) && (file.ContentLength > 0) && !string.IsNullOrEmpty(file.FileName))
                {
                    result     = RawItemPriceManager.ImportExcel(file.InputStream);
                    PageAction = "Import";
                }
            }
            if (command == "Save")
            {
                result     = RawItemPriceManager.UpdateRawItemPrice(RIPViewModel.RawItemPriceMasterList);
                PageAction = "Update price";
            }
            else if (command == "Import")
            {
                result     = true;
                PageAction = "(NO ACTION) Import price";
            }
            if (result)
            {
                TempData["SuccessMessage"] = PageAction + " successful";
                new AuditLogManager().Audit(user.Username, DateTime.Now, "Raw Item Price Update", PageAction, RIPViewModel.RIMRIC, RIPViewModel.RIMRID);
            }
            else
            {
                TempData["ErrorMessage"] = PageAction + " failed";
            }
            return(RedirectToAction("Index"));
        }