public async Task <ActionResult> Edit([Bind(Include = "Id,Facebook,Tviter,Pinterest,Instagram,Youtube")] HomePageChange homePageChange)
        {
            if (ModelState.IsValid)
            {
                db.Entry(homePageChange).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(homePageChange));
        }
        public async Task <ActionResult> Edit([Bind(Include = "Id,ClientName,ClientStatus,Descriptions")] ClientsFedbackModel clientsFedbackModel)
        {
            if (ModelState.IsValid)
            {
                db.Entry(clientsFedbackModel).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(clientsFedbackModel));
        }
Exemplo n.º 3
0
        public async Task <ActionResult> Edit([Bind(Include = "Id,ContactDetaliss,Reception,Booking,President")] ContactDetalis contactDetalis)
        {
            if (ModelState.IsValid)
            {
                db.Entry(contactDetalis).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(contactDetalis));
        }
        public async Task <ActionResult> Edit([Bind(Include = "Id,NewsImageUrl,ImageDescription,Date")] LatestNewsContent latestNewsContent)
        {
            if (ModelState.IsValid)
            {
                db.Entry(latestNewsContent).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(latestNewsContent));
        }
Exemplo n.º 5
0
        public async Task <ActionResult> Edit([Bind(Include = "Id,TeamImagesDescription,NameTeam,statusTeam")] MonaTeamModel monaTeamModel)
        {
            if (ModelState.IsValid)
            {
                db.Entry(monaTeamModel).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(monaTeamModel));
        }
        public async Task <ActionResult> Edit([Bind(Include = "Id,CategoryName")] ModelCategory modelCategory)
        {
            if (ModelState.IsValid)
            {
                db.Entry(modelCategory).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(modelCategory));
        }
        public async Task <ActionResult> Edit([Bind(Include = "Id,UserName,UserEmail,UserResume")] ContactUserModel contactUserModel)
        {
            if (ModelState.IsValid)
            {
                db.Entry(contactUserModel).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(contactUserModel));
        }
        public async Task <ActionResult> Edit([Bind(Include = "Id,CastHeader,CastResumeHeader,ImageContentId")] CastingModel castingModel)
        {
            if (ModelState.IsValid)
            {
                db.Entry(castingModel).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            ViewBag.ImageContentId = new SelectList(db.ImageContents, "Id", "ImageUrlName", castingModel.ImageContentId);
            return(View(castingModel));
        }
Exemplo n.º 9
0
        public async Task <ActionResult> Edit([Bind(Include = "Id,ModelFullName,FigurStatus,ModelCategoryId")] ModellsChange modellsChange)
        {
            if (ModelState.IsValid)
            {
                db.Entry(modellsChange).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            ViewBag.ModelCategoryId = new SelectList(db.ModelCategories, "Id", "CategoryName", modellsChange.ModelCategoryId);
            return(View(modellsChange));
        }
        public async Task <ActionResult> Edit([Bind(Include = "Id,Facebook,Tviter,Pinterest,Instagram,Youtube,ModellsChangeId")] Social social)
        {
            if (ModelState.IsValid)
            {
                db.Entry(social).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            ViewBag.ModellsChangeId = new SelectList(db.ModellsChanges, "Id", "ModelFullName", social.ModellsChangeId);
            return(View(social));
        }
        public async Task <ActionResult> Edit([Bind(Include = "Id,ImageUrlName,MonaTeamModelId,LatestNewsContentId,ClientsFedbackModelsId,ModellsChangeId,HomePageChangeId")] ImageContent imageContent)
        {
            if (ModelState.IsValid)
            {
                db.Entry(imageContent).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            ViewBag.ClientsFedbackModelsId = new SelectList(db.ClientsFedbackModels, "Id", "ClientName", imageContent.ClientsFedbackModelsId);
            ViewBag.HomePageChangeId       = new SelectList(db.HomePageChanges, "Id", "Facebook", imageContent.HomePageChangeId);
            ViewBag.LatestNewsContentId    = new SelectList(db.LatestNewsContents, "Id", "NewsImageUrl", imageContent.LatestNewsContentId);
            ViewBag.ModellsChangeId        = new SelectList(db.ModellsChanges, "Id", "ModelFullName", imageContent.ModellsChangeId);
            ViewBag.MonaTeamModelId        = new SelectList(db.MonaTeamModels, "Id", "TeamImagesDescription", imageContent.MonaTeamModelId);
            return(View(imageContent));
        }