Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
        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;
            }
        }
Exemplo n.º 3
0
 public ActionResult Change(int id)
 {
     var model = new Individual();
     // TODO: Get the actual model here.
     return View(model);
 }