예제 #1
0
        public ActionResult _SetGlobalHelDskQue(GlobalHelpdesk model, HttpPostedFileBase[] postedFile)
        {
            var Value = objPartnerBAL.SaveGlobalHelDskQue(model, postedFile);

            Session["GID"] = Value;
            if (model.files != null)
            {
                foreach (var file in model.files)
                {
                    if (file != null)
                    {
                        var fileName = Path.GetFileName(file.FileName);
                        var path     = Path.Combine(Server.MapPath("~/Documents/Globaldesk/"), fileName);
                        file.SaveAs(path);
                        // var UploadDocument = objPartnerBAL.UploadGlobalHelpImg(filename1, Value);
                    }
                }
            }

            return(RedirectToAction("_PartialgetGlobaldeskImag", "Globalhelp", new { GID = Value }));
        }
예제 #2
0
 public int SaveGlobalHelDskQue(GlobalHelpdesk model, HttpPostedFileBase[] postedFile)
 {
     return(objInfPub.SaveGlobalHelDskQue(model, postedFile));
 }