示例#1
0
 public ActionResult AddContributor(Contributor contributor)
 {
     if (contributor.FirstName != null &&
         contributor.LastName != null &&
         contributor.CellNumber != null)
     {
         ContributorsViewModel vm      = new ContributorsViewModel();
         EventRepository       manager = new EventRepository(Properties.Settings.Default.ConnString);
         manager.AddContributor(contributor);
     }
     return(RedirectToAction("GetContributors", "Contributors"));
 }