示例#1
0
 public ActionResult KeyListEdit(KeyList keyList)
 {
     if (ModelState.IsValid)
     {
         db.Entry(keyList).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(keyList));
 }
 public ActionResult GroupsEdit([Bind(Include = "pKey,DistKey,GroupName,GroupNumber,ContactID")] Groups groups)
 {
     if (ModelState.IsValid)
     {
         db.Entry(groups).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("GroupsIndex"));
     }
     return(View(groups));
 }
示例#3
0
 public ActionResult PhoneListEdit([Bind(Include = "pKey,LastName,FirstName,Phone,Email,Gender,LastServed,SobDate,Speaker,Jail,Daphne,Fairhope,County,TwStep,Ride,PhoneList1,AttendWorkshop,Treatement,SpecialEvents,GoogleVoice,onHold")] VolunteerList volunteerList)
 {
     if (ModelState.IsValid)
     {
         db.Entry(volunteerList).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(volunteerList));
 }
示例#4
0
 public ActionResult PaymentsEdit(Payments payments)
 {
     if (ModelState.IsValid)
     {
         db.Entry(payments).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("PaymentsIndex"));
     }
     return(View(payments));
 }
示例#5
0
 public ActionResult Edit([Bind(Include = "pKey,Location,MapUIRL,EmbedURL,DistKey,Address")] Locations locations)
 {
     if (ModelState.IsValid)
     {
         locations.DistKey         = GlobalVariables.DistKey;
         db.Entry(locations).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(locations));
 }
示例#6
0
 public ActionResult MeetingEdit(Meetings meetings)
 {
     if (ModelState.IsValid)
     {
         meetings.DistKey         = GlobalVariables.DistKey;
         db.Entry(meetings).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("MeetingsEdit"));
     }
     return(View(meetings));
 }
示例#7
0
 public ActionResult CommLinkEdit(CommLinks commLinks)
 {
     if (ModelState.IsValid)
     {
         commLinks.DistKey         = GlobalVariables.DistKey;
         db.Entry(commLinks).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("CommLinks", "CommHeaders", new { id = commLinks.CommKey }));
     }
     return(View("CommLinkEdit", commLinks));
 }
示例#8
0
 public ActionResult LinksEdit([Bind(Include = "pKey,LinkText,linkURL,ListOrder,LinkComment,target")] Links links)
 {
     if (ModelState.IsValid)
     {
         links.DistKey         = GlobalVariables.DistKey;
         db.Entry(links).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("LinksIndex"));
     }
     return(View(links));
 }
        public ActionResult PaymentSetupsEdit(PaymentSetupViewModel psvm)
        {
            PaymentSetup paymentSetup = psvm.paymentSetup;

            if (ModelState.IsValid)
            {
                db.Entry(paymentSetup).State = EntityState.Modified;
                db.SaveChanges();
                return(RedirectToAction("PaymentSetupsIndex"));
            }
            return(View(psvm));
        }
示例#10
0
 public ActionResult CommEdit(CommHeaders commHeaders)
 {
     if (ModelState.IsValid)
     {
         commHeaders.DistKey = GlobalVariables.DistKey;
         //string positionTitle = db.Positions.FirstOrDefault(x => x.pKey == commHeaders.PositionKey).CommitteeTitle;
         //commHeaders.CommName = positionTitle;
         db.Entry(commHeaders).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("CommIndex"));
     }
     return(View(commHeaders));
 }
示例#11
0
        public ActionResult ContactsEdit(ContactsViewModel cvm)
        {
            Contacts contacts = cvm.contact;

            contacts.DistKey = GlobalVariables.DistKey;

            if (ModelState.IsValid)
            {
                db.Entry(contacts).State = EntityState.Modified;
                db.SaveChanges();
                return(RedirectToAction("ContactsIndex"));
            }
            return(View(contacts));
        }
 public ActionResult EventsEdit(Events events)
 {
     if (Session["currFile"] != null)
     {
         events.Eventlink = Session["currFile"].ToString();
     }
     events.DistKey = GlobalVariables.DistKey;
     if (ModelState.IsValid)
     {
         db.Entry(events).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("EventsIndex"));
     }
     return(View(events));
 }
 public ActionResult DocEdit(Documents documents)
 {
     if (Session["currFile"] != null)
     {
         documents.DocLink = Session["currFile"].ToString();
     }
     documents.DistKey = GlobalVariables.DistKey;
     if (ModelState.IsValid)
     {
         db.Entry(documents).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("DocIndex"));
     }
     return(View(documents));
 }