예제 #1
0
 public ActionResult Edit([Bind(Include = "IdConfigApp,NameApp,AccountPOP3,PortPOP3,AccountSMTP,PortSMTP,account,PasswordAccount")] ConfigApp configApp)
 {
     if (ModelState.IsValid)
     {
         db.Entry(configApp).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(configApp));
 }
예제 #2
0
 public ActionResult Edit([Bind(Include = "IdMetingPoint,DescMetingPoint")] MetingPoint metingPoint)
 {
     if (ModelState.IsValid)
     {
         db.Entry(metingPoint).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(metingPoint));
 }
예제 #3
0
 public ActionResult Edit([Bind(Include = "EventID,Subject,Description,Start,End,ThemeColor,IsFullDay")] Event @event)
 {
     if (ModelState.IsValid)
     {
         db.Entry(@event).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(@event));
 }
예제 #4
0
 public ActionResult Edit([Bind(Include = "IdTypeTransfer,DescType")] TypeTransfer typeTransfer)
 {
     if (ModelState.IsValid)
     {
         db.Entry(typeTransfer).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(typeTransfer));
 }
예제 #5
0
 public ActionResult Edit([Bind(Include = "IdLogin,Email,UserLog,Password,Active,Profile,Name,LastName,UserLogin")] ACCESS aCCESS)
 {
     if (ModelState.IsValid)
     {
         db.Entry(aCCESS).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(aCCESS));
 }
예제 #6
0
 public ActionResult Edit([Bind(Include = "IdSalesContact,Contact,Address,City,Phone,ThemeColor,PercentPay")] SalesContact salesContact)
 {
     if (ModelState.IsValid)
     {
         db.Entry(salesContact).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(salesContact));
 }
예제 #7
0
 public ActionResult Edit([Bind(Include = "IdBankInfo,BankAddress,BankPostalCode,BankCity,BankProvince,AccountNumber,SwiftCode,TransitNumber,Customer,IdBank")] BankInfo bankInfo)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bankInfo).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.IdBank = new SelectList(db.Bank, "IdBank", "Name", bankInfo.IdBank);
     return(View(bankInfo));
 }
예제 #8
0
        public ActionResult Edit([Bind(Include = "IdCity,City,PriceOne,Pricetwo")] PriceCities priceCities)
        {
            if (ModelState.IsValid)
            {
                db.Entry(priceCities).State = EntityState.Modified;
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(priceCities));
        }
예제 #9
0
 public ActionResult Edit([Bind(Include = "IdPassenger,Name,Phone,Phone2,Email,IdTypeVisa")] Passenger passenger)
 {
     if (ModelState.IsValid)
     {
         db.Entry(passenger).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.IdTypeVisa = new SelectList(db.TypeVisa, "IdTypeVisa", "DescTypeVisa", passenger.IdTypeVisa);
     return(View(passenger));
 }
예제 #10
0
 public ActionResult Edit([Bind(Include = "IdSalesSource,Value,PercentPay,TypePay,Status,Note,IdSalesContact,NumInvoice")] SalesSource salesSource)
 {
     if (ModelState.IsValid)
     {
         db.Entry(salesSource).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.IdSalesContact = new SelectList(db.SalesContact, "IdSalesContact", "Contact", salesSource.IdSalesContact);
     return(View(salesSource));
 }
예제 #11
0
 public ActionResult Edit([Bind(Include = "IdDestination,Name,Address,PostalCode,Phone,Mobile,IdTypeDestination,IdSalesContact,IdCity")] Destination destination)
 {
     if (ModelState.IsValid)
     {
         db.Entry(destination).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.IdSalesContact    = new SelectList(db.SalesContact, "IdSalesContact", "Contact", destination.IdSalesContact);
     ViewBag.IdTypeDestination = new SelectList(db.TypeDestination, "IdTypeDestination", "DescTypeDestination", destination.IdTypeDestination);
     ViewBag.IdCity            = new SelectList(db.PriceCities, "IdCity", "City", destination.IdCity);
     return(View(destination));
 }
예제 #12
0
 //[Authorize(Roles = "Administrador")]
 public ActionResult Edit([Bind(Include = "IdTransEst,FlightNumber,DateFligh,TimeFligh,TimePiDo,IdMetingPoint,QtyPassenger,QtyPassengerKids,QtyMalaGr,QtyMalaPq,CityFromId,CityToId,TransferAmount,Discount,FinalPrice,DateTransEst,DateAprove,DateRequestEstimate,NamePassenger,Phone,Phone2,Email,TypeVisa,Note,IdAprove,IdTypeDestination,IdDestination,IdSales,IdTypeTransfer,IdTypePayment,IdStatusPayment")] TransferEstimate transferEstimate)
 {
     if (ModelState.IsValid)
     {
         db.Entry(transferEstimate).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.IdDestination     = new SelectList(db.Destination, "IdDestination", "Name", transferEstimate.IdDestination);
     ViewBag.IdMetingPoint     = new SelectList(db.MetingPoint, "IdMetingPoint", "DescMetingPoint", transferEstimate.IdMetingPoint);
     ViewBag.CityFromId        = new SelectList(db.PriceCities, "IdCity", "City", transferEstimate.CityFromId);
     ViewBag.CityToId          = new SelectList(db.PriceCities, "IdCity", "City", transferEstimate.CityToId);
     ViewBag.IdSales           = new SelectList(db.SalesContact, "IdSalesContact", "Contact", transferEstimate.IdSales);
     ViewBag.IdStatusPayment   = new SelectList(db.StatusPayment, "IdStatusPayment", "DescStatusPayment", transferEstimate.IdStatusPayment);
     ViewBag.IdAprove          = new SelectList(db.TransferAprove, "IdAprove", "DescAprove", transferEstimate.IdAprove);
     ViewBag.IdTypeDestination = new SelectList(db.TypeDestination, "IdTypeDestination", "DescTypeDestination", transferEstimate.IdTypeDestination);
     ViewBag.IdTypePayment     = new SelectList(db.TypePayment, "IdTypePayment", "DescTypePayment", transferEstimate.IdTypePayment);
     ViewBag.IdTypeTransfer    = new SelectList(db.TypeTransfer, "IdTypeTransfer", "DescType", transferEstimate.IdTypeTransfer);
     return(View(transferEstimate));
 }