Ejemplo n.º 1
0
        public ActionResult Shopping(AlisverisModel alisverisModel)
        {
            if (ModelState.IsValid)
            {
                Alisveris alisveris = StokKontrolEntitiesProvider.AddShopping(alisverisModel);

                string fileName3 = StokKontrolEntitiesProvider.GetObjectIdByAlisverisTarihi(alisverisModel).ToString();

                string fileName  = alisveris.ObjectId.ToString();
                string fileName2 = System.IO.Path.GetFileName(fileName);
                string filePath  = "~/Uploads/" + fileName2 + ".jpg";
                alisverisModel.Files.SaveAs(Server.MapPath(filePath));
                ModelState.Clear();
            }
            return(View());
        }