public ActionResult Add(Citizen model) { if (ModelState.IsValid) { repo.Create(model); return(this.Store(model)); } else { return((ActionResult)this.Content("")); } }
public void Add(Citizen citizen) { _citizenRepository.Create(citizen); }