Exemple #1
0
        public ActionResult Create([Bind(Include = "ApplicantId,ApellidoParterno,ApellidoMaterno,Nombre,FechaNacimiento,Nacionalidad,Rfc,Curp")] Applicant applicant)
        {
            if (ModelState.IsValid)
            {
                _repository.AddApplicant(applicant);
                _repository.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(applicant));
        }