public ActionResult Change(Individual individual) { try { workOnDelegate(work => { work.Update(individual); work.Commit(); }); return RedirectToAction("Show"); } catch (Exception ex) { // TODO: Need proper exception logging. throw ex; } }
public ActionResult Starting(Individual individual) { individual.OpenId = User.Identity.Name; individual.DefaultId = "OpenId"; // Currently the only login option is Open ID - will add more options in the future. individual.SignedUp = DateTime.Now; individual.Role = RegiztryRole.Individual; try { workOnDelegate(work => { work.Insert(individual); work.Commit(); }); return RedirectToAction("Show"); } catch (Exception ex) { // TODO: Need proper exception logging. throw ex; } }
public ActionResult Change(int id) { var model = new Individual(); // TODO: Get the actual model here. return View(model); }