Ejemplo n.º 1
0
        public ActionResult Update(AttendeeEditModel model, string ra = "Index")
        {
            if (!ModelState.IsValid)
            {
                model.Agencies = _agencyService.GetAgencies(1, 100);
                return(View(model));
            }

            // Save changes to db
            _attendeeService.Update(model, User.Identity.Name);

            if (ra == "Details")
            {
                return(RedirectToAction(nameof(Details), new { id = model.Id }));
            }

            return(RedirectToAction(nameof(Index)));
        }
Ejemplo n.º 2
0
 public void Update(AttendeeDto attendee)
 {
     attendeeService.Update(attendee);
 }