public EliminarPreMatriculaResponse Ejecutar(EliminarPreMatriculaRequest request)
        {
            Dominio.PreMatricula      prematricula      = _unitOfWork.PreMatriculaServiceRepository.FindFirstOrDefault(t => t.IdUsuario == request.UsuarioId);
            EliminarEstudianteRequest estudianteRequest = new EliminarEstudianteRequest();

            estudianteRequest.IdUsuario = request.UsuarioId;
            EliminarResponsableRequest responsableRequest = new EliminarResponsableRequest();

            responsableRequest.UsuarioId = request.UsuarioId;
            var respuestaE = estudianteService.Ejecutar(estudianteRequest);

            for (int i = 1; i <= 3; i++)
            {
                var respuesta = responsableService.Ejecutar(responsableRequest);
            }
            if (prematricula == null)
            {
                return(new EliminarPreMatriculaResponse()
                {
                    Message = $"PreMatricula no existe"
                });
            }
            else
            {
                _unitOfWork.PreMatriculaServiceRepository.Delete(prematricula);
                _unitOfWork.Commit();
                return(new EliminarPreMatriculaResponse()
                {
                    Message = $"PreMatricula Eliminado Exitosamente"
                });
            }
        }
 public EliminarResponsableResponse Ejecutar(EliminarResponsableRequest request)
 {
     Dominio.Responsable responsable = _unitOfWork.ResponsableServiceRepository.FindFirstOrDefault(t => t.IdUsuario == request.UsuarioId);
     if (responsable == null)
     {
         return(new EliminarResponsableResponse()
         {
             Message = $"Responsable no existe"
         });
     }
     else
     {
         _unitOfWork.ResponsableServiceRepository.Delete(responsable);
         _unitOfWork.Commit();
         return(new EliminarResponsableResponse()
         {
             Message = $"Responsable Eliminado Exitosamente"
         });
     }
 }