public ActionResult Login(string returnUrl)
        {
            VersionValidation version      = ValidateVersion();
            string            versionError = "";

            if (version != null)
            {
                if (version.VersionWebApi != version.VersionMVC)
                {
                    versionError += "La version de WebAPI no corresponde con el proyecto MVC <br />";
                }
                if (version.VersionDB != version.VersionMVC)
                {
                    versionError += "La version de Base de Datos no corresponde con el proyecto MVC";
                }
            }
            else
            {
                versionError = "Error al validar version";
            }
            LoginViewModel oLoginViewModel = new LoginViewModel();

            oLoginViewModel.LanguageList   = GetLanguage();
            oLoginViewModel.FailedAttempts = 1;



            ViewBag.ReturnUrl = returnUrl;
            if (ConfigurationManager.AppSettings["ActivateValidation"] != null && Convert.ToBoolean(ConfigurationManager.AppSettings["ActivateValidation"]))
            {
                ViewBag.VersionError = versionError;
            }
            return(View(oLoginViewModel));
        }
        public HttpResponseMessage GetVersions()
        {
            VersionValidation entity = this.service.GetVersions();

            if (entity == null)
            {
                entity = new VersionValidation();
            }
            if (ConfigurationManager.AppSettings["VersionApp"] != null)
            {
                entity.VersionWebApi = ConfigurationManager.AppSettings["VersionApp"].ToString();
            }
            return(Request.CreateResponse(HttpStatusCode.OK, entity, Configuration.Formatters.JsonFormatter));
        }