Пример #1
0
        //Fin Login


        public ActionResult Confirmar(int id)
        {
            string userIpAddress = this.Request.UserHostAddress;

            try
            {
                String Action = "";
                if (ModelState.IsValid)
                {
                    if (DBcontext.InsertClient(id))
                    {
                        Session["mensaje"] = "correcto";
                        Action             = "Confirmar password correcto";
                        //Traking
                        String location = "Class: " + System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name;
                        location += "-Method: " + System.Reflection.MethodBase.GetCurrentMethod().Name;
                        TrackLog(location, Action);
                        return(View());
                    }
                }

                return(View());
            }
            catch (Exception ex)
            {
                //Log error
                DBcontext.setPiactProblem(ex.Message, ex.StackTrace, "NA", userIpAddress, "BETA");

                return(View());
            }
        }