Пример #1
0
 public ActionResult Add(Citizen model)
 {
     if (ModelState.IsValid)
     {
         repo.Create(model);
         return(this.Store(model));
     }
     else
     {
         return((ActionResult)this.Content(""));
     }
 }
Пример #2
0
 public void Add(Citizen citizen)
 {
     _citizenRepository.Create(citizen);
 }