public ActionResult Edit(UserPoster c)
        {
            UserPosterClient userPosterClient = new UserPosterClient();

            if (ModelState.IsValid)
            {
                c.Email = c.Email.ToLower();
                userPosterClient.Update(c);
                return(RedirectToAction("ProfileAcc"));
            }
            else
            {
                return(View(c));
            }
        }
        public ActionResult EditarPoster(UserPoster c)
        {
            UserPosterClient posterClient = new UserPosterClient();
            var elemento = posterClient.Get(c.Id);

            if (ModelState.IsValid)
            {
                c.Email          = c.Email.ToLower();
                c.ConfirmarEmail = c.ConfirmarEmail.ToLower();
                if (c.Email == c.ConfirmarEmail)
                {
                    if (elemento.Contra == c.Contra)
                    {
                        if (c.NombreCiudad == 0 || c.NombrePais == 0)
                        {
                            return(EditarPoster("Debes seleccionar un pais y su ciudad correspondiente."));
                        }
                        else
                        {
                            if (elemento.Email == c.Email)
                            {
                                posterClient.Update(c);
                                if (User.IsInRole("Poster"))
                                {
                                    return(RedirectToAction("Logout"));
                                }
                                else
                                {
                                    return(RedirectToAction("GestionUserPoster", "UserAdmin"));
                                }
                            }
                            else
                            {
                                if (posterClient.FindCorreo(c))
                                {
                                    return(EditarPoster("Ya existe una cuenta registrada con ese correo"));
                                }
                                else
                                {
                                    posterClient.Update(c);
                                    if (User.IsInRole("Poster"))
                                    {
                                        return(RedirectToAction("Logout"));
                                    }
                                    else
                                    {
                                        return(RedirectToAction("GestionUserPoster", "UserAdmin"));
                                    }
                                }
                            }
                        }
                    }
                    else
                    {
                        return(EditarPoster("Las Contraseñas no coinciden"));
                    }
                }
                else
                {
                    return(EditarPoster("Los Emails no coinciden"));
                }
            }
            else
            {
                return(View(c));
            }
        }