public ActionResult Edit(FormAntecedentes form)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    _antecedentesService.Update(form.FormToHistorialClinicoDto(false));
                    return(Redirect("~/ListaPacientes/ListaPacientes/"));
                }
                return(View(form));
            }
            catch (Exception ex)
            {
                _log.Error($"[Method: Edit(FormAntecedentes form)] -> {ex}");

                return(Redirect("~/Error/Error"));
            }
        }
        public ActionResult Create(FormAntecedentes form)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    var paciente = _pacienteService.Get(form.IdPaciente);
                    form.IdHistorialClinico = paciente.historialClinico.idHistorialClinico;
                    var historialClinico = form.FormToHistorialClinicoDto();
                    _antecedentesService.Insert(historialClinico);
                }

                return(View(form));
            }
            catch (Exception ex)
            {
                _log.Error($"[Method: Create(FormAntecedentes form)] -> {ex}");

                return(Redirect("~/Error/Error"));
            }
        }