Пример #1
0
        public void ImageGroom()
        {
            var        file = Request.Files["Image"];
            GroomModel gb   = GroomModel.Instance;
            string     path = Server.MapPath("~\\images\\");

            file.SaveAs(path + gb.groom.Picture);
        }
Пример #2
0
        public PartialViewResult CoupleHome()
        {
            BrideModel bride = BrideModel.Instance;
            GroomModel groom = GroomModel.Instance;

            var couple = service.GetNew();

            couple.Groom = groom.groom;
            couple.Bride = bride.bride;

            return(PartialView("_Couple", couple));
        }