public ActionResult Editar(UserModel model)
        {
            if (!validator.RunValidate(model, out var errors))
            {
                ViewBag.Errors = errors.Replace("-", @"\n");
                return(View(model));
            }

            var result = new userServices().editUser(toUser(model));

            if (result)
            {
                return(new HttpStatusCodeResult(500));
            }

            return(View(model));
        }