public bool AddAdministrator(Administrator data, ref string message)
        {
            ObjectParameter messageParameter = new ObjectParameter("message", typeof(string));
            ObjectParameter resultParameter = new ObjectParameter("salida", typeof(bool));            

            context.sp_RegisterAdministrator(
                    data.Person.Name,
                    data.Person.LastName,
                    data.Person.DNI,
                    data.Person.BirthDate,
                    data.Person.Phone,
                    data.Person.Email,
                    this.EncryptSHA256(data.Person.Email),
                    data.Person.Password,
                    data.PoliticalGroup,
                    data.Salary,
                    messageParameter,
                    resultParameter
                );

            message = messageParameter.Value.ToString();

            return Convert.ToBoolean(resultParameter.Value);
        }
        public ActionResult Administrator(Administrator data, int idDays, int idMonths, int idYears, string nameGroup)
        {
            if (ModelState.IsValid)
            {
                string message = "";
                DateTime birth = new DateTime(idYears, idMonths, idDays);
                birth.ToString("dd-mm-yyyy", CultureInfo.InvariantCulture);
                data.Person.BirthDate = birth;
                data.PoliticalGroup = nameGroup;
                bool IsSuccess = userService.AddAdministrator(data, ref message);

                if (IsSuccess)
                {
                    return Content("<div id=formAdministrator><script>redirectToHome();</script></div>");
                }
                else
                {
                    ViewBag.ErrorProcedure = message;
                    return PartialView("_Administrator", data);
                }
            }
            else
            {
                return PartialView("_Administrator", data);
            }
        }