Example #1
0
        public ActionResult CreateUser(FormCollection collection)
        {
            try
            {
                UserServiceModel user = new UserServiceModel();
                user.Usuario            = collection["Usuario"];
                user.Contrasena         = collection["Contrasena"];
                user.Correo             = collection["Correo"];
                user.Nombre             = collection["Nombre"];
                user.ApellidoPaterno    = collection["ApellidoPaterno"];
                user.ApellidoMaterno    = collection["ApellidoMaterno"];
                user.CodigoAcreditacion = collection["CodigoAcreditacion"];
                user.Perfil             = collection["Perfil"];

                user.createUser();
                return(RedirectToAction("CuentaCreada"));
            }
            catch
            {
                return(View());
            }
        }